*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> memchr (3)              
Title
Content
Arch
Section
 

MEMCHR(3)

Contents


NAME    [Toc]    [Back]

     memchr - locate byte in byte string

SYNOPSIS    [Toc]    [Back]

     #include <string.h>

     void *
     memchr(const void *b, int c, size_t len);

DESCRIPTION    [Toc]    [Back]

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

RETURN VALUES    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

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

STANDARDS    [Toc]    [Back]

     The  memchr()  function conforms to ANSI X3.159-1989 (``ANSI
C'').

OpenBSD     3.6                           June      29,      1991
[ Back ]
 Similar pages
Name OS Title
memset NetBSD write a byte to byte string
memset OpenBSD write a byte to byte string
memset FreeBSD write a byte to byte string
memset NetBSD write a byte to byte string
putlong Tru64 Places long byte quantities into the byte stream
putshort Tru64 Places short byte quantities into the byte stream
htons Tru64 Convert an unsigned short (16-bit) integer from host byte order to network byte order
ntohl Tru64 Convert an unsigned 32-bit integer from Internet network byte order to host byte order
bstring NetBSD byte string operations
memcmp OpenBSD compare byte string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service