Search:

Type: Posts; User: awesmesk8er

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    9,595

    sweet thanks

    sweet thanks
  2. Replies
    5
    Views
    9,595

    if I put another fscanf within the for loop, I...

    if I put another fscanf within the for loop, I get a segfault
  3. Replies
    5
    Views
    9,595

    reading int and string from file fscanf

    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.
  4. Replies
    9
    Views
    4,270

    oh ok. thank you.

    oh ok.

    thank you.
  5. Replies
    9
    Views
    4,270

    when I set filename = strtok( NULL, " ") it...

    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...
  6. Replies
    9
    Views
    4,270

    strtok is a function in the library ...

    strtok is a function in the <string.h> library

    the function looks like this:

    char *strtok( char *s1, const char *s2);
  7. Replies
    9
    Views
    4,270

    I know that strtok returns a "char *".... it...

    I know that strtok returns a "char *"....

    it just won't work
  8. Replies
    9
    Views
    4,270

    still doesn't work

    still doesn't work
  9. Replies
    9
    Views
    4,270

    Pass Filename to another function

    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...
Results 1 to 9 of 10