-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.c
More file actions
31 lines (26 loc) · 954 Bytes
/
test.c
File metadata and controls
31 lines (26 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <stdio.h>
/* Standard headers */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <sys/time.h>
#define FN "LOWER_FNAMES"
int main(int argc, char * argv[])
{
FILE *fid;
char filters[5][30];
if( access( FN, F_OK ) != 1 )
fid = fopen(FN, "r");
else
{
fid = NULL;
printf("SHIT fid is null\n") ;
}
if(fid)
{
int wc = fscanf(fid, "%[^,], %[^,], %[^,], %[^,], %s", filters[0], filters[1], filters[2], filters[3], filters[4] );
printf("%s %s %s %s %s\n", filters[0], filters[1], filters[2], filters[3], filters[4] );
}
}