Query: memmem
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MEMMEM(3) BSD Library Functions Manual MEMMEM(3)NAMEmemmem -- locate substring in byte stringLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <string.h> void * memmem(const void *block, size_t blen, const void *pat, size_t plen);DESCRIPTIONThe memmem() function locates the first occurrence of the binary string pat of size plen bytes in the byte string block of size blen bytes.RETURN VALUESThe memmem() function returns a pointer to the substring located, or NULL if no such substring exists within block. If plen is zero, block is returned, i.e. a zero length pat is deemed to match the start of the string, as with strstr(3).SEE ALSObm(3), memchr(3), strchr(3), strstr(3)STANDARDSThe memmem() function is not currently standardized. However, it is meant to be API compatible with functions in FreeBSD and Linux.HISTORYmemmem() first appeared in the Free Software Foundation's glibc library.BSDMarch 12, 2005 BSD
Related Man Pages |
---|
memmem(3) - debian |
memmem(3) - centos |
memmem(3) - opendarwin |
memmem(3) - x11r4 |
memmem(3) - php |
Similar Topics in the Unix Linux Community |
---|
Substring not working if more than 1 space |
Need help with substring |
Searching a substring from a string in UNIX |
If statement for substring within string (korn) |
sed with variables |