概述
strchr()函数的实现:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char * mystrchr(const char * pdest, char ch)
{
char *p = NULL;
if (pdest == NULL)
{
return NULL;
}
while (*pdest != '
strchr()函数的实现:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char * mystrchr(const char * pdest, char ch)
{
char *p = NULL;
if (pdest == NULL)
{
return NULL;
}
while (*pdest != '