summaryrefslogtreecommitdiffstats
path: root/src/note.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/note.c')
-rw-r--r--src/note.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/note.c b/src/note.c
index 57bfc2d..91aae66 100644
--- a/src/note.c
+++ b/src/note.c
@@ -88,3 +88,12 @@ erase_note (char **note, enum eraseflg flag)
mem_free (*note);
*note = NULL;
}
+
+/* Read a serialized note file name from a stream and deserialize it. */
+void
+note_read (char *buffer, FILE *fp)
+{
+ (void)fgets (buffer, NOTESIZ + 1, fp);
+ buffer[NOTESIZ] = '\0';
+ getc (fp);
+}