scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

strstr.3 (599B)


      1 .TH strstr 3
      2 .SH NAME
      3 strstr - find substring in string
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 char *strstr(const char *s1, const char *s2)
      8 .SH DESCRIPTION
      9 The
     10 .BR strstr ()
     11 function locates the first occurence
     12 in the string pointed to by
     13 .I s1
     14 of the sequence of characters
     15 (excluding the terminating null character)
     16 in the string pointed to by
     17 .IR s2 .
     18 .SH RETURN VALUE
     19 The
     20 .BR strchr ()
     21 function shall return a pointer to the located string
     22 or a null pointer if
     23 .I s2
     24 is not found.
     25 .PP
     26 If
     27 .I s2
     28 points to an empty string,
     29 the function returns
     30 .IR s1 .
     31 .SH STANDARDS
     32 ISO/IEC 9899:1999 Section 7.21.5.7