home · contact · privacy
Server: Only write record and save file if 15 seconds have passed.
[plomrogue] / src / common / readwrite.h
index cdbd386e56539917b8760a09022bb0cc834ba591..b5b2f1c2d68643226f8589764662c63fed069bee 100644 (file)
@@ -29,6 +29,9 @@ extern void try_fputc(uint8_t c, FILE * file, const char * f);
 extern int try_fgetc(FILE * file, const char * f);
 extern char * try_fgets(char * line, int size, FILE * file, const char * f);
 
+/* Return "path" + suffix "_tmp". Value is malloc'd, must be freed externally.*/
+extern char * build_temp_path(char * path);
+
 /* Write to "path_tmp" "path" + "_tmp" and return a new file at that "path_tmp"
  * open for writing. "path_tmp" is malloc()'d, must be freed externally.
 */