Penguin
Annotated edit history of strstr(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 STRSTR
2 !!!STRSTR
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 BUGS
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 strstr - locate a substring
14 !!SYNOPSIS
15
16
17 __#include
18 __''haystack''__, const char *__''needle''__);
19 __
20 !!DESCRIPTION
21
22
23 The __strstr()__ function finds the first occurrence of
24 the substring ''needle'' in the string ''haystack''.
25 The terminating `0' characters are not
26 compared.
27 !!RETURN VALUE
28
29
30 The __strstr()__ function returns a pointer to the
31 beginning of the substring, or NULL if the substring is not
32 found.
33 !!BUGS
34
35
36 Early versions of Linux libc (like 4.5.26) would not allow
37 an empty argument. Later versions (like 4.6.27) work
38 correctly, and return ''haystack'' when ''needle'' is
39 empty.
40 !!SEE ALSO
41
42
43 index(3), memchr(3), rindex(3),
44 strchr(3), strpbrk(3), strsep(3),
45 strspn(3), strtok(3)
46 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.