diff options
Diffstat (limited to 'l4file.h')
-rw-r--r-- | l4file.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/l4file.h b/l4file.h new file mode 100644 index 0000000..3e8e0f7 --- /dev/null +++ b/l4file.h @@ -0,0 +1,15 @@ +#ifndef LBS_FILE_H +#define LBS_FILE_H + +#include <l4array.h> +#include <stdio.h> + +#define lbs_file_read_stdin_line() \ + (lbs_file_read_file_line_delim (stdin, '\n')) +#define lbs_file_read_stdin_line_delim(delim) \ + (lbs_file_read_file_line_delim (stdin, (delim))) +#define lbs_file_read_file_line(infile) \ + (lbs_file_read_file_line_delim ((infile), '\n')) +LbsArray* lbs_file_read_file_line_delim (FILE* infile, int delim); + +#endif /* LBS_FILE_H */ |