Search:

Type: Posts; User: ofCircuits

Search: Search took 0.01 seconds.

  1. I see, but in cases when I need to convert tok to...

    I see, but in cases when I need to convert tok to an integer to store an integer?



    int i = atoi( tok )


    Is that not valid.

    Also, why do we run a while loop until tok is NULL? Is this...
  2. Thank you for your help.

    This corresponds with lines 18 and 22.




    This seems to be the standard example I've been able to find online, but like I said:



    I guess I'm just looking for some help to achieve a deeper...
  3. Using strtok() in conjunction with fgets() to parse file data.

    Full Disclosure: This is part of an assignment I have received from school. In the assignment we are forbidden to use fscanf().


    I have been trying to get this to work, but I've started to...
Results 1 to 3 of 3