MEMMEM - obtain first substring from string.
(Not in the ANSI standard)
Usage:
#include <sdgstd.h>
ptr = memmem( s, subs, size_s, size_subs);
Where:
- const void *s;
- points to the string to be scanned.
- const void *subs;
- points to the (sub)string to scan for.
- size_t size_s;
- is the length of "s".
- size_t size_subs;
- is the length of "subs".
- void *ptr;
- points to the first occurrence of the substring in the
given string. If the substring is not found, this will be
a null pointer.
Description:
"memmem" returns a pointer to the first occurrence
of a substring within another string.
See Also:
expl c lib memrstr
expl c lib strstr
Copyright © 1996, Thinkage Ltd.