Search:

Type: Posts; User: Derek Lake

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    14,045

    No problem :) A great alternative to gets is...

    No problem :)

    A great alternative to gets is fgets. std10093 has provided a great link on the problems inherent in gets, and here is a link on how to use fgets from this site as well:
    FAQ > Get a...
  2. Replies
    12
    Views
    14,045

    Hey, YannB. Here is some sample code to take a...

    Hey, YannB. Here is some sample code to take a string and separate it into words, or "tokens."


    #include <stdio.h>
    #include <string.h>

    int main()
    {
    int i,garbage;
    char *tokenPtr;
Results 1 to 2 of 2