if i have a string, how can i get a substring from it and store it in a new variable?
eg
char str[100]
and i want substring1 from character 20~30 and substring2 35-41
strncp can not specify the starting position, can not use strtok because there is no particular delimiter.
is there a easy way to do it in C?
please help me