#strchr

函数返回指针类型(strchr函数)

#include<stdio.h>#include<string.h>char*mystrchr(char*s,charc){while(*s){if(*s==c){returns;}s++;}returnNULL;}intmain(){charstr[100]="helloworld";//c...