memmem man page on FreeBSD

Printed from http://www.polarhome.com/service/man/?qf=memmem&af=0&tf=2&of=FreeBSD

MEMMEM(3)		 BSD Library Functions Manual		     MEMMEM(3)

NAME
     memmem — locate a byte substring in a byte string

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <string.h>

     void *
     memmem(const void *big, size_t big_len, const void *little,
	 size_t little_len);

DESCRIPTION
     The memmem() function locates the first occurrence of the byte string
     little in the byte string big.

RETURN VALUES
     If big_len is smaller than little_len, if little_len is 0, if big_len is
     0 or if little occurs nowhere in big, NULL is returned; otherwise a
     pointer to the first character of the first occurrence of little is
     returned.

SEE ALSO
     memchr(3), strchr(3), strstr(3)

CONFORMING TO
     memmem() is a GNU extension.

HISTORY
     The memmem() function first appeared in FreeBSD 6.0.

AUTHORS
     Pascal Gloor ⟨pascal.gloor@spale.com⟩

BUGS
     This function was broken in Linux libc up to and including version 5.0.9
     and in GNU libc prior to version 2.1.

BSD				August 24, 2005				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net