GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MEMMEM (3)

NAME

memmem - locate a byte substring in a byte string

CONTENTS

Library
Synopsis
Description
Return Values
See Also
Conforming To
History
Authors
Bugs

LIBRARY


.Lb libc

SYNOPSIS


.In string.h void *
.Fo memmem const void *big size_t big_len const void *little size_t little_len
.Fc

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
.Fx 6.0 .

AUTHORS


.An Pascal Gloor Aq 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.
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.