X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fcommon%2Freadwrite.h;h=c5f0ccc2a5af72589685a5c867e45c01901daf11;hb=cdd22bc79aafb8261af4785f58425d8535e57a5b;hp=cdbd386e56539917b8760a09022bb0cc834ba591;hpb=1cb57a35a3b3cc4ec8870531ca254a655c0bdda2;p=plomrogue
diff --git a/src/common/readwrite.h b/src/common/readwrite.h
index cdbd386..c5f0ccc 100644
--- a/src/common/readwrite.h
+++ b/src/common/readwrite.h
@@ -1,4 +1,8 @@
/* src/common/readwrite.h:
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Routines for reading and writing files.
*/
@@ -29,6 +33,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.
*/