1MEMCHR(P)                  POSIX Programmer's Manual                 MEMCHR(P)
2
3
4

NAME

6       memchr - find byte in memory
7

SYNOPSIS

9       #include <string.h>
10
11       void *memchr(const void *s, int c, size_t n);
12
13

DESCRIPTION

15       The memchr() function shall locate the first occurrence of c (converted
16       to an unsigned char) in  the  initial  n  bytes  (each  interpreted  as
17       unsigned char) of the object pointed to by s.
18

RETURN VALUE

20       The  memchr() function shall return a pointer to the located byte, or a
21       null pointer if the byte does not occur in the object.
22

ERRORS

24       No errors are defined.
25
26       The following sections are informative.
27

EXAMPLES

29       None.
30

APPLICATION USAGE

32       None.
33

RATIONALE

35       None.
36

FUTURE DIRECTIONS

38       None.
39

SEE ALSO

41       The Base Definitions volume of IEEE Std 1003.1-2001, <string.h>
42
44       Portions of this text are reprinted and reproduced in  electronic  form
45       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
46       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
47       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
48       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
49       event of any discrepancy between this version and the original IEEE and
50       The Open Group Standard, the original IEEE and The Open Group  Standard
51       is  the  referee document. The original Standard can be obtained online
52       at http://www.opengroup.org/unix/online.html .
53
54
55
56IEEE/The Open Group                  2003                            MEMCHR(P)
Impressum