Iv been working on this code and playing around with it. So far, i have a code for converting a string to integers.
#include <string.h>
#include <stdio.h>
char string[] = "6565,4325,7074,7897,7685,3478";
char seps[] = " ,";
char *token;
void main(void)
{
printf( "%s\n\n Tokens:\n", string);
token = strtok( string, seps );
while( token != NULL )
{
printf( "%s\n", token );
token = strtok( NULL, seps );
}
}
Now what i want to do is for the code to display or target any number that is between plus or minus 50 of 7074 or any constant number.
Any ideas? Thanks!