User Profile

Collapse

Profile Sidebar

Collapse
joppe
joppe
Last Activity: Oct 18 '07, 02:45 PM
Joined: Oct 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • joppe
    replied to Newb help: Traversing a char *data
    in C
    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...
    See more | Go to post

    Leave a comment:


  • joppe
    started a topic Newb help: Traversing a char *data
    in C

    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"...
    See more | Go to post
    Last edited by Ganon11; Oct 11 '07, 01:47 PM. Reason: Please use the [CODE] tags provided.
No activity results to display
Show More
Working...