home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made sure client is not confused by newlines at the end of config files.
[plomrogue]
/
src
/
client
/
windows.h
diff --git
a/src/client/windows.h
b/src/client/windows.h
index 59cf64dec6da821a99207d7ce98b49373d2845c1..97da5f1628e69e846af57c7edebbf5840997b55c 100644
(file)
--- a/
src/client/windows.h
+++ b/
src/client/windows.h
@@
-73,6
+73,10
@@
extern struct Win * get_win_by_id(char id);
/* Read/write individual Win (identified by "c") and world.winDB.order /
* world.winDB.active from/to "file". Follow writing with "delim" delimiter.
* Use "line" and "linemax" as expected by try_fgets().
/* Read/write individual Win (identified by "c") and world.winDB.order /
* world.winDB.active from/to "file". Follow writing with "delim" delimiter.
* Use "line" and "linemax" as expected by try_fgets().
+ *
+ * Note that read_winconf_from_file() returns 1 on success and 0 if it detects
+ * having found the end of the valid interface configuration file by either
+ * hitting a EOF or a newline (so empty newlines at the end of the file are ok).
*/
extern uint8_t read_winconf_from_file(char * line, uint32_t linemax,
FILE * file);
*/
extern uint8_t read_winconf_from_file(char * line, uint32_t linemax,
FILE * file);