#include "stdafx.h"
#include "stdlib.h"
#include "stdio.h"
#define TRUE 1
#define FALSE 0
/*查找source字符串中匹配chars字符串中的任意一个字符*/
char *find_char(char const *source, char const *chars)//注意返回类型是否与输入类型一致
{
char *ps=(char *)source;//注意类型转化
char *pc=(char *)chars;
if(ps==NULL || pc == NULL)
return NULL;
if(*ps=='\0' || *pc == '\0')
return NULL;
while(*ps !='\0')//注意数据不等于结束符
{
while(*pc !='\0')//
{
if(*ps == *pc)
{
&