add normalizepath_cstr()
[rofl0r-libulz.git] / examples / fileparser_test.c
blobdf88126d9ec05b866fc44dd25a338167295d9715
1 #include "../include/fileparser.h"
2 #include <stdio.h>
4 // the missing newline at EOF is part of the functionality test.
6 // gcc -Wall -Wextra fileparser_test.c ../fileparser.c -o filep_test
8 int main(int argc, char** argv) {
9 (void) argc; (void) argv;
10 fileparser pr;
11 fileparser* p = &pr;
13 fileparser_open(p, __FILE__);
14 while(!fileparser_readline(p))
15 puts(p->buf);
17 fileparser_close(p);
18 return 0;