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