/in/database.c: In function 'LOAD':
/in/database.c:89:11: warning: implicit declaration of function 'strtok_r'; did you mean '__strtok_r'? [-Wimplicit-function-declaration]
piece=strtok_r(NULL," ",&rest);
^~~~~~~~
__strtok_r
/in/database.c:89:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece=strtok_r(NULL," ",&rest);
^
/in/database.c:100:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i< strlen(oneline);i++){
^
/in/database.c:104:13: warning: implicit declaration of function 'strtok_s'; did you mean 'strtok'? [-Wimplicit-function-declaration]
first = strtok_s(oneline," ",&restline);
^~~~~~~~
strtok
/in/database.c:104:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
first = strtok_s(oneline," ",&restline);
^
/in/database.c:114:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
info = strtok_s(oneline," ",&restline);
^
/in/database.c:117:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
info = strtok_s(NULL," ",&restline);
^
/in/database.c:120:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
info = strtok_s(NULL," ",&restline);
^
/in/database.c:125:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
info = strtok_s(NULL," ",&restline);
^
/in/database.c: In function 'SAVE':
/in/database.c:146:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
table=strtok_r(NULL," ",&rest);
^
/in/database.c:148:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
filename= strtok_r(NULL," ",&rest);
^
/in/database.c: In function 'PRINT':
/in/database.c:179:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
table=strtok_r(NULL," ",&rest);
^
/in/database.c: In function 'INSERT':
/in/database.c:232:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece= strtok_r(NULL," ",&rest);//give (
^
/in/database.c:234:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
course=strtok_r(NULL," ",&rest);//give course
^
/in/database.c:236:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
name=strtok_r(NULL," ",&rest);//give name
^
/in/database.c:238:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
deadline=strtok_r(NULL," ",&rest);//give deadline
^
/in/database.c:240:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
difficulty=strtok_r(NULL," ",&rest);// give difficulty
^
/in/database.c:242:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece= strtok_r(NULL," ",&rest);//give )
^
/in/database.c:244:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
table= strtok_r(NULL," ",&rest);// give table
^
/in/database.c: In function 'UPDATE':
/in/database.c:276:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL, " ", &rest);//give (
^
/in/database.c:278:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
field = strtok_r(NULL, " ", &rest);//give field
^
/in/database.c:280:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
value = strtok_r(NULL, " ", &rest);//give value
^
/in/database.c:282:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL, " ", &rest);//give )
^
/in/database.c:284:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
table = strtok_r(NULL, " ", &rest);//give table
^
/in/database.c:286:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL, " ", &rest);//give (
^
/in/database.c:288:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
course = strtok_r(NULL, " ", &rest);//give course
^
/in/database.c:290:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
name = strtok_r(NULL, " ", &rest);//give name
^
/in/database.c: In function 'DELETE':
/in/database.c:433:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
table = strtok_r(NULL, " ",&rest);//give table
^
/in/database.c:435:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL, " ",&rest);//give (
^
/in/database.c:437:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
course = strtok_r(NULL, " ",&rest);//give course, can be *
^
/in/database.c:439:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
name = strtok_r(NULL, " ",&rest);//give name, can be *
^
/in/database.c: In function 'SELECT':
/in/database.c:571:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
table = strtok_r(NULL," ",&rest);//give table
^
/in/database.c:573:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL," ",&rest);//give (
^
/in/database.c:575:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
course = strtok_r(NULL," ",&rest);//give course
^
/in/database.c:577:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
name = strtok_r(NULL," ",&rest);//give name
^
/in/database.c:579:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL," ",&rest);//give )
^
/in/database.c:581:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL," ",&rest);//give SORT
^
/in/database.c:583:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
field =strtok_r(NULL," ",&rest);//give field
^
/in/database.c:585:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(NULL," ",&rest);//give limit
^
/in/database.c:587:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
n = strtok_r(NULL," ",&rest);//give n
^
/in/database.c: In function 'AUTO':
/in/database.c:687:21: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
char *filename= strtok_r(NULL," ",&rest);
^~~~~~~~
/in/database.c:695:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i< strlen(string);i++){
^
/in/database.c:698:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece= strtok_r(string," ",&rest); //does it works?
^
/in/database.c: In function 'main':
/in/database.c:720:9: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
gets(str);
^~~~
fgets
/in/database.c:721:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
piece = strtok_r(str, " ",&rest);
^
/tmp/ccp1NPTQ.o: In function `main':
database.c:(.text.startup+0x5e): warning: the `gets' function is dangerous and should not be used.
/tmp/ccp1NPTQ.o: In function `LOAD':
database.c:(.text+0x3b2): undefined reference to `strtok_s'
database.c:(.text+0x3f8): undefined reference to `strtok_s'
database.c:(.text+0x42a): undefined reference to `strtok_s'
database.c:(.text+0x460): undefined reference to `strtok_s'
database.c:(.text+0x4ad): undefined reference to `strtok_s'
collect2: error: ld returned 1 exit status