home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make textfile_width() check for too large lines.
[plomrogue]
/
src
/
common
/
readwrite.h
diff --git
a/src/common/readwrite.h
b/src/common/readwrite.h
index 9affeb855946f0272587f5b0f2268443edf8f306..4aebdbc9b1d1fc3e94cad5b9898d51399da6b310 100644
(file)
--- a/
src/common/readwrite.h
+++ b/
src/common/readwrite.h
@@
-22,7
+22,7
@@
extern void try_fputc(uint8_t c, FILE * file, char * f);
/* Wrapper to calling fgetc() and fgets() from function "f". The return code is
* returned unless ferror() indicates an error (i.e. to signify an end of file,
/* Wrapper to calling fgetc() and fgets() from function "f". The return code is
* returned unless ferror() indicates an error (i.e. to signify an end of file,
- * fgetc() may return an EOF and fgets() a NULL.
+ * fgetc() may return an EOF and fgets() a NULL
)
.
*/
extern int try_fgetc(FILE * file, char * f);
extern char * try_fgets(char * line, int size, FILE * file, char * f);
*/
extern int try_fgetc(FILE * file, char * f);
extern char * try_fgets(char * line, int size, FILE * file, char * f);
@@
-34,9
+34,7
@@
extern char * try_fgets(char * line, int size, FILE * file, char * f);
extern void try_fclose_unlink_rename(FILE * file, char * p1, char * p2,
char * f);
extern void try_fclose_unlink_rename(FILE * file, char * p1, char * p2,
char * f);
-/* Return largest line length from "file" the largest line length (including
- * newline chars).
- */
+/* Return largest line length from "file" (including newline chars). */
extern uint32_t textfile_width(FILE * file);
extern uint32_t textfile_width(FILE * file);