Changeset 609 for branches/GNU/src/binutils/libiberty/strstr.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/strstr.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 4 4 /* 5 5 6 NAME 6 @deftypefn Supplemental char* strstr (const char *@var{string}, const char *@var{sub}) 7 7 8 strstr -- locate first occurance of a substring 8 This function searches for the substring @var{sub} in the string 9 @var{string}, not including the terminating null characters. A pointer 10 to the first occurrence of @var{sub} is returned, or @code{NULL} if the 11 substring is absent. If @var{sub} points to a string with zero 12 length, the function returns @var{string}. 9 13 10 SYNOPSIS 14 @end deftypefn 11 15 12 #include <string.h>13 14 char *strstr (char *s1, char *s2)15 16 DESCRIPTION17 18 Locates the first occurance in the string pointed to by S1 of19 the string pointed to by S2. Returns a pointer to the substring20 found, or a NULL pointer if not found. If S2 points to a string21 with zero length, the function returns S1.22 23 BUGS24 16 25 17 */ … … 36 28 extern char *strchr (); 37 29 extern int strncmp (); 38 #if __GNUC__ ==239 extern __SIZE_TYPE__ strlen ( );30 #if __GNUC__ >= 2 31 extern __SIZE_TYPE__ strlen (const char *); 40 32 #endif 41 33 register int len = strlen (s2); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.