Next: strcoll, Previous: strcat-strcpy, Up: C library functions [Index]
strchr Function#include <string.h>
int main () {
String new s;
String new result;
s = "s1";
if ((result = strchr (s, '1')) == "1") {
printf ("Pass\n");
} else {
printf ("Fail\n");
}
exit(0);
}