aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strstr.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-09-26 18:45:50 +0000
committerDJ Delorie <dj@redhat.com>2001-09-26 18:45:50 +0000
commit39423523167c47f72822dbb9eb3ab4a0dfeafe68 (patch)
treeb437d1ed0d3cb7e6a0a67e5dd30ef19abbedb95e /libiberty/strstr.c
parent4e6667ac4f987fecbcf576513c70485a4718712e (diff)
downloadgdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.zip
gdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.tar.gz
gdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/strstr.c')
-rw-r--r--libiberty/strstr.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/libiberty/strstr.c b/libiberty/strstr.c
index fab36e3..e736034 100644
--- a/libiberty/strstr.c
+++ b/libiberty/strstr.c
@@ -3,24 +3,16 @@
/*
-NAME
+@deftypefn Supplemental char* strstr (const char *@var{string}, const char *@var{sub})
- strstr -- locate first occurance of a substring
+This function searches for the substring @var{sub} in the string
+@var{string}, not including the terminating NUL characters. A pointer
+to the first occurance of @var{sub} is returned, or NULL if the
+substring is absent. If @var{sub} points to a string with zero
+length, the function returns @var{string}.
-SYNOPSIS
+@end deftypefn
- #include <string.h>
-
- char *strstr (char *s1, char *s2)
-
-DESCRIPTION
-
- Locates the first occurance in the string pointed to by S1 of
- the string pointed to by S2. Returns a pointer to the substring
- found, or a NULL pointer if not found. If S2 points to a string
- with zero length, the function returns S1.
-
-BUGS
*/