D
David Warner
Greetings!
In looking into some C coding, I am looking for the C function that will
search for multiple occurances of a same character in a string.
For Instance:
char str[80] = "We the people of the United States";
strchr will be successful if i am looking for the "U". It returns a
successful condition.
However, if I want to parse down the string and look for each occurance
of "o", I should either get a count of 2 or the pointer moves to the
first occurance.
Is there a standard C function that returns the value(s) i am looking
for or is this something I need to write myself?
Thanks in advance for your assistance!
In looking into some C coding, I am looking for the C function that will
search for multiple occurances of a same character in a string.
For Instance:
char str[80] = "We the people of the United States";
strchr will be successful if i am looking for the "U". It returns a
successful condition.
However, if I want to parse down the string and look for each occurance
of "o", I should either get a count of 2 or the pointer moves to the
first occurance.
Is there a standard C function that returns the value(s) i am looking
for or is this something I need to write myself?
Thanks in advance for your assistance!