I am compiling with the -ansi flag, i get the following errors:
Code:
p1.c: In function ‘main’:
p1.c:76: warning: assignment makes pointer from integer without a cast
p1.c:79: warning: assignment makes pointer from integer without a cast
p1.c:80: warning: passing argument 1 of ‘atoi’ makes pointer from integer without a cast
/usr/include/stdlib.h:148: note: expected ‘const char *’ but argument is of type ‘int’
p1.c:81: warning: passing argument 1 of ‘atoi’ makes pointer from integer without a cast
/usr/include/stdlib.h:148: note: expected ‘const char *’ but argument is of type ‘int’
pg1.c:89: warning: assignment makes pointer from integer without a cast
I am using the strtok_r function, but it keeps on throwing these errors at me.
Any suggestions what i am doing wrong?
Thanks