strrstr(3) - Linux man page

Name

strrstr - locate a substring

Synopsis

#include <sstrings2.h>Linking with -lsstrings2
char* strrstr(const char* haystack, const char* needle);

Description

The strstr() function finds the last occurrence of the substring needle in the string haystack. The terminating '\0' characters are not compared.

Return Value

The strstr() function returns a pointer to the beginning of the substring, or NULL if the substring is not found or one of haystack and needle is NULL.

Bugs

Please send your bug reports to yanezp@informatik.uni-freiburg.de

See Also

index(3), memchr(3), rindex(3), strchr(3), strpbrk(3), strsep(3), strspn(3), strtok(3)

Referenced By

sstrings2(5)