Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/strstr.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    44/*
    55
    6 NAME
     6@deftypefn Supplemental char* strstr (const char *@var{string}, const char *@var{sub})
    77
    8         strstr -- locate first occurance of a substring
     8This function searches for the substring @var{sub} in the string
     9@var{string}, not including the terminating null characters.  A pointer
     10to the first occurrence of @var{sub} is returned, or @code{NULL} if the
     11substring is absent.  If @var{sub} points to a string with zero
     12length, the function returns @var{string}.
    913
    10 SYNOPSIS
     14@end deftypefn
    1115
    12         #include <string.h>
    13 
    14         char *strstr (char *s1, char *s2)
    15 
    16 DESCRIPTION
    17 
    18         Locates the first occurance in the string pointed to by S1 of
    19         the string pointed to by S2.  Returns a pointer to the substring
    20         found, or a NULL pointer if not found.  If S2 points to a string
    21         with zero length, the function returns S1.
    22        
    23 BUGS
    2416
    2517*/
     
    3628  extern char *strchr ();
    3729  extern int strncmp ();
    38 #if __GNUC__==2
    39   extern __SIZE_TYPE__ strlen ();
     30#if __GNUC__ >= 2
     31  extern __SIZE_TYPE__ strlen (const char *);
    4032#endif
    4133  register int len = strlen (s2);
Note: See TracChangeset for help on using the changeset viewer.