from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
|
You are here: manpages
rawmemchr
Section: C Library Functions (3) Updated: 202-0-25 Index
Return to Main Contents
NAME
rawmemchr - memory raw search character
LIBRARY
Standard C library
( libc,~ -lc)
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <string.h>
[[deprecated]] void *rawmemchr(const void *s, int c);
DESCRIPTION
The
rawmemchr()
function is similar to
memchr(),
but it assumes
(i.e., the programmer knows for certain)
that an instance of
c
lies somewhere in the memory area starting at the location pointed to by
s.
If an instance of
c
is not found, the behavior is undefined.
Use either
strlen(3)
or
memchr(3)
instead.
RETURN VALUE
The
rawmemchr()
function returns a pointer to the matching byte.
ATTRIBUTES
For an explanation of the terms used in this section, see
attributes(7).
| Interface | Attribute | Value
|
|
rawmemchr()
| Thread safety | M-Safe
|
STANDARDS
GNU.
HISTORY
glibc 2.1.
SEE ALSO
memchr(3),
strlen(3),
strnul(3)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ATTRIBUTES
-
- STANDARDS
-
- HISTORY
-
- SEE ALSO
-
|