mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
freadln.*: implement reading lines from arbitrary file
This commit is contained in:
@@ -26,6 +26,7 @@ enum freadln_status {
|
||||
return freadln_OK; \
|
||||
} while (0)
|
||||
|
||||
int freadln(char** output, size_t* length_out);
|
||||
int freadln(FILE* f, char** output, size_t* length_out);
|
||||
#define finreadln(output, length_out) freadln(stdin, output, length_out)
|
||||
|
||||
#endif /* _FREADLN_H */
|
||||
|
||||
Reference in New Issue
Block a user