O
Owner
How do I compare portion of string to another string?
for example
i'd like to do this
char s1[100], s2[100];
int i = strlen(s1);
strcmp(s1[i-3],s2)
^
passing only portion of the string to compare.
for example
i'd like to do this
char s1[100], s2[100];
int i = strlen(s1);
strcmp(s1[i-3],s2)
^
passing only portion of the string to compare.