Teen Programmers Unite  


Return to forum top

Find String

Posted by sinple [send private reply] at January 05, 2003, 08:19:11 AM

hello everybody

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.

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.