Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strstr( const char *str,
                  const char *substr );
    char __far *_fstrstr( const char __far *str,
                          const char __far *substr );

Description:
    The strstr and _fstrstr functions locate the first occurrence in the
    string pointed to by str of the sequence of characters (excluding the
    terminating null character) in the string pointed to by substr.

    The _fstrstr function is a data model independent form of the strstr
    function.  It accepts far pointer arguments and returns a far pointer.
     It is most useful in mixed memory model applications.

Returns:
    The strstr and _fstrstr functions return a pointer to the located
    string, or NULL if the string is not found.

See Also:
    strcspn, _fstrcspn

Example:
    #include <stdio.h>
    #include <string.h>

    void main()
      {
        printf( "%s\n",
                strstr( "This is an example", "is" )
              );
      }

    produces the following:

    is is an example

Classification:
    strstr is ANSI, _fstrstr is not ANSI

Systems:
     strstr - All

    _fstrstr - All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson