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...
Type: Posts; User: Derek Lake
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...
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;