MEMRSTR - obtain last substring in part of a string.

(Not in the ANSI standard)

Usage:

#include <sdgstd.h>
ptr = memrstr( s, subs, N );

Where:

const void *s;
points to the string to be scanned.
const char *subs;
points to the (sub)string to look for.
size_t N;
gives the length of "s".
void *ptr;
points to the last occurrence of the substring in the first N characters of the string. If the substring is not found, the NULL pointer is returned.

Description:

"memrstr" returns a pointer to the last occurrence of the (sub)string "subs" within the first N characters of the string "s".

See Also:

expl c lib memstr

expl c lib memmem

Copyright © 1996, Thinkage Ltd.