2 |
This function is in the public domain. */ |
This function is in the public domain. */ |
3 |
|
|
4 |
/* |
/* |
|
NAME |
|
|
strchr -- return pointer to first occurance of a character |
|
5 |
|
|
6 |
SYNOPSIS |
@deftypefn Supplemental char* strchr (const char *@var{s}, int @var{c}) |
7 |
char *strchr (const char *s, int c) |
|
8 |
|
Returns a pointer to the first occurrence of the character @var{c} in |
9 |
|
the string @var{s}, or @code{NULL} if not found. If @var{c} is itself the |
10 |
|
null character, the results are undefined. |
11 |
|
|
12 |
|
@end deftypefn |
13 |
|
|
|
DESCRIPTION |
|
|
Returns a pointer to the first occurance of character C in |
|
|
string S, or a NULL pointer if no occurance is found. |
|
|
|
|
|
BUGS |
|
|
Behavior when character is the null character is implementation |
|
|
dependent. |
|
14 |
*/ |
*/ |
15 |
|
|
16 |
#include <ansidecl.h> |
#include <ansidecl.h> |