Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of MEMCHR

MEMCHR

Section: Linux Programmer's Manual (3)
Updated: April 12, 2025
Index  

NAME

memchr - scan memory for a character  

SYNOPSIS

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

DESCRIPTION

The memchr() function scans the first n bytes of the memory area pointed to by s for the character c. The first byte to match c (interpreted as an unsigned character) stops the operation.  

RETURN VALUE

The memchr() function returns a pointer to the matching byte or NULL if the character does not occur in the given memory area.  

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:04 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat