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.
See Also StrChr
An example can be found in Datebook.c:
static CharPtr SubstituteStr (CharPtr str, CharPtr token, ...)
{
...
CharPtr ptr;
// Find the start of the token string, if it doesn't exist, exit.
ptr = StrStr(str, token);
if (ptr == NULL) return (str);
...
}
Serg Koren <[EMAIL PROTECTED]> on 05/15/99 05:27:45 PM
Please respond to [EMAIL PROTECTED]
Sent by: Serg Koren <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (Keith Rollin/HQ/3Com)
Subject: StrStr example...
Does anyone have an example of a StrStr usage? I'm travelling and
don't have my docs with me.
Thanks,
S
------------------------------------------------------------------------
VisualNewt Software
Makers of:
Newt'sPaper(tm) - The premiere newsreader for the Apple MessagePad
http://www.VisualNewt.com/NewtsPaper.html
The Universe(tm) - The only ST:CCG database with built-in browser
http://www.VisualNewt.com/TheUniverse.html
------------------------------------------------------------------------