"magix" <ma***@asia.comwrites:
How can I search for occurance of a character in certain position of a
string
I checked function strchr, but doesn't option to specify position.
If you're checking a certain position, it's not really a search, is it?
It sounds like you're looking for something that will tell you, for
example, whether or not the character 'C' occurs in the third position
(position 2) in the string "ABCDE", regardless of whether it also
occurs anywhere else. If so, all you need is a single comparison. If
not, please clarify what you're asking for.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"