You're looking for the StrStr() fn: 672 Palm OS SDK Reference StrStr Purpose Look for a substring within a string. Prototype CharPtr StrStr (CharPtr str, CharPtr token) Parameters str String to search. token String to search for. Result Returns a pointer to the first occurrence of token in str or NULL if not found. Comments Use this function instead of the standard strstr routine.
On systems with multi-byte character encodings, this function makes sure that it does not match only part of a multi-byte character. If the matching strings begins at an inter-character boundary, then this function returns NULL. -----Original Message----- From: quennie [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 6:41 PM To: Palm Developer Forum Subject: FindStrInStr function Hi..everyone... Does anyone can tell me that is there any function that i would be able to find a string as i gave a substring of it.. As i know that the "FindStrInStr" is only can search string for substring but in forward direction.. for instance, "123456" , the find can be succeed if it is given 123 or 12 or 1234 but if 456 or 56, it is fail. Does anyone has the idea? Another issue is, if the string is "Chua Wei Mei", i try to find this string but when i type "Chua", it doesn't match the string or even "Chua Wei Mei" (I'm using this "FindStrInStr" function), Does anyone have the idea?????? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
