Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
#include <string.h>
Go to the source code of this file.
Functions | |
void * | memmem (const void *l, size_t l_len, const void *s, size_t s_len) |
Find substring s in memory area l. More... | |
void* memmem | ( | const void * | l, |
size_t | l_len, | ||
const void * | s, | ||
size_t | s_len | ||
) |
Find substring s in memory area l.
Finds the start of the first occurrence of the substring s of length s_len in the memory area l of length l_len.
The behavior is undefined if access occurs beyond the end of the array (s) searched. The behavior is undefined if s is a null pointer.
l | pointer to the object to be examined |
l_len | number of characters to examine |
s | the substring to search for |
s_len | number of characters to examine |
Definition at line 34 of file memmem.c.