strstr#
Synopsis#
#include <string.h>
char *strstr(const char *s1, const char *s2);
Status#
Partially implemented
Conformance#
IEEE Std 1003.1-2017
Description#
The strstr()
function shall locate the first occurrence in the string pointed to by s1 of the sequence of bytes
(excluding the terminating NULL
character) in the string pointed to by s2.
Return value#
Upon successful completion, strstr()
shall return a pointer to the located string or a NULL
pointer if the string is
not found.
If s2 points to a string with zero length, the function shall return s1.
Errors#
No errors are defined.
Tests#
Untested
Known bugs#
None