[OCLUG-devel] comparing strings
James Colannino
james at colannino.org
Fri Sep 2 15:18:15 PDT 2005
Hey everyone. I have a quick question. Let's say that I have a single
string for reference with the following contents:
"stringone\nstringtwo\nstringthree\n"
What I want to do is compare the contents of one string with each
"element" in the above string (each string I want to check against is
separated by \n's.) So first I would compare a string to "stringone,"
then compare it to "stringtwo," etc. What's a good way for me to do
this in C?
James
More information about the OCLUG-devel
mailing list