MEMCHR

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

memchr - locate byte in byte string  

SYNOPSIS

Fd #include <string.h> Ft void * Fn memchr const void *b int c size_t len  

DESCRIPTION

The Fn memchr function locates the first occurrence of Fa c (converted to an unsigned char) in string Fa b .  

RETURN VALUES

The Fn memchr function returns a pointer to the byte located, or NULL if no such byte exists within Fa len bytes.  

SEE ALSO

index(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3)  

STANDARDS

The Fn memchr function conforms to St -ansiC .


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 21:44:09 GMT, August 05, 2022