(Not in the ANSI standard)
#include <sdgstd.h> ptr = memrchr( s, c, N );
"memrchr" returns a pointer to the last occurrence of the character "c" in the first N characters of the string "s".
Unlike "strchr", "memrchr" ignores any '\0' bytes it comes across; thus it does not stop if it finds the end of the string, but keeps on going until it has looked at N characters.
Copyright © 1996, Thinkage Ltd.