Thanks for the reply.
Okay let us say that I use while(char *ans = strbrk(head->data, "ae").
It wont compile.
The reason beeing head->data I think.
Compile error:
test.c:108: error: syntax error before "char"
test.c: At top level:
test.c:120: error: syntax error before '}' token
All i want to is to extract the data string from head->data...
User Profile
Collapse
-
Newb help: Traversing a char *data
Hi!
This is probably a stupid question, but I've searched and tried to find the answear for 4 hours now and im getting a little tired.
Okay here it goes.
I got a list containing a char *data and want to replace every 'a, e' from the data string. Traversing the list and printing out every "line" of data isnt any problem, the problem is when I try to get data[i], or copying the string "head->data"...
No activity results to display
Show More
Leave a comment: