2016-09-06 17:44:27 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-06 17:44:27 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _FILEHANDLING_H
|
|
|
|
#define _FILEHANDLING_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
2016-11-20 21:54:52 +00:00
|
|
|
u64 count_lines (FILE *fd);
|
2016-09-06 17:44:27 +00:00
|
|
|
|
2018-02-08 18:13:29 +00:00
|
|
|
size_t fgetl (FILE *fp, char *line_buf);
|
2016-09-06 17:44:27 +00:00
|
|
|
|
2017-02-14 10:14:32 +00:00
|
|
|
size_t superchop_with_length (char *buf, const size_t len);
|
|
|
|
|
2018-02-08 18:13:29 +00:00
|
|
|
size_t in_superchop (char *buf);
|
2016-09-06 17:44:27 +00:00
|
|
|
|
|
|
|
#endif // _FILEHANDLING_H
|