You might consider reading one character at a time and doing the "end of line" control yourself. You read one char at a time, putting each one in subsequent spots in your temporary buffer. When you...
Type: Posts; User: anduril462
You might consider reading one character at a time and doing the "end of line" control yourself. You read one char at a time, putting each one in subsequent spots in your temporary buffer. When you...
$ make sched
gcc -Wall -g -lm sched.c -o sched
sched.c:22: warning: return type defaults to ‘int’
sched.c: In function ‘main’:
sched.c:62: warning: passing argument 2 of ‘strtok’ makes...
Reread your docs Tater ;)
Note that s2 is a char *, meaning it needs double quotes " ". strtok will not split on a null character because of a null terminator in s2. Still, defining a variable...