sweet thanks
Type: Posts; User: awesmesk8er
sweet thanks
if I put another fscanf within the for loop, I get a segfault
Theres a text file that I have to read and it looks like this:
4
Taco
Bell
Tastes
Fantastic
4-represents the "n" number of lines below it.
oh ok.
thank you.
when I set
filename = strtok( NULL, " ")
it gives me the error: Operands of = have incompatible types 'char * [50]' and 'char *'.
and Lvalue required.
but I want filename to be of type "char...
strtok is a function in the <string.h> library
the function looks like this:
char *strtok( char *s1, const char *s2);
I know that strtok returns a "char *"....
it just won't work
still doesn't work
I'm trying to pass a filename to another function called first. But I keep getting the error "char *[50] not compatible with char *". The error is in the line "filename = strtok(....)". But I don't...