Chat on IRC |
Find String
Posted by sinple [send private reply] at January 05, 2003, 08:19:11 AM
hello everybody
(C++) does anyone have a function that can find an exact string in another string? compatable with {].:; etc. it's for the little ascii smileys. thanks alot in advance
Posted by RedX [send private reply] at January 05, 2003, 08:41:23 AM
For C-type /0 terminated strings you have char *strstr(char *big_string, char *sub_string) in string.H.
For the C++ string class you have the memberfunction find.
Register as a new user | ||||