STRRSTR - obtain last substring of string.

(Not in the ANSI standard)

Usage:

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

Where:

const char *s;
points to the string to be scanned.
const char *subs;
points to the (sub)string to scan for.
char *ptr;
points to the last occurrence of the substring in the given string. If the substring is not found, this will be the NULL pointer.

Description:

"strrstr" returns a pointer to the last occurrence of a substring within another string.

See Also:

expl c lib strstr

Copyright © 1996, Thinkage Ltd.