home · contact · privacy
Make server config files more readable, their parsing more lenient.
[plomrogue] / src / common / err_try_fgets.h
index 8ea6368c975ba3e974e6cdbddf616ac65717d170..7258a882f9a01a652cf5e21c2c506ee0f56860be 100644 (file)
@@ -43,9 +43,10 @@ extern void err_line(uint8_t test, char * line, char * intro, char * msg);
  * 'i': check for "line" describing an integer in all its chars before end or \n
  *      (i.e. all other chars must be digits, except the first char, which may
  *       be '+' or '-'; a '+' or '-' without digits following is invalid)
- */
-extern void err_try_fgets(char * line, uint32_t linemax, FILE * file,
-                          char * context, char * test);
+ * '8': check for "line" describing an integer smaller than or equal UINT8_MAX
+*/
+extern char * err_try_fgets(char * line, uint32_t linemax, FILE * file,
+                            char * context, char * test);