strstr
find string within string
Synopsis
#include <string.h>
char *strstr(const char *s1, const char *s2);
Description
The
function returns a pointer to the first occurrence in the string
strstr
pointed to by s1 of the characters in the string pointed to by s2. This
excludes the terminating null character in
Error Conditions
If the string is not found,
string of zero length,
Example
#include <string.h>
char *ptr1, *ptr2;
ptr1 = "TESTING";
ptr2 = strstr(ptr1, 'E');
/* ptr2 points to the E in TESTING
See Also
strchr
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
returns a null pointer. If
strstr
is returned.
s1
C/C++ Run-Time Library
.
s1
s2
*/
points to a
3-135
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers