Strtok() basically tokenizes your string (string tokenizer function). You input a string and specify the delimiters to where it should be split.
So for example, if you have
char string[1024] = "I,know,how,to, use,strtok"; (delimiters are the commas)
char delim[512] = ",';
Output:
I
know
how
to
use
strtok
then you put strtok(string,...
User Profile
Collapse
-
Range validation in C
Hi everybody,
I'm trying to write a program that checks what the minimum and maximum number out of all the range numbers given.
Example: 1-10, 2-20, 3-30
min = 1
max = 30
There are also special cases where the range can be:
-20 (this is from 0 to 20)
or
20- (this is from 20 to the highest number possible, which is INT_MAX).
If I type in the "20-" range, it only...
No activity results to display
Show More
Leave a comment: