#define _CRT_SECURE_NO_WARNINGS//strchr
#include<assert.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char* my_strchr(char* str, int c)
{
while (*str != c)
{
str++;
}
return str;
}
int main()
{
char arr1[20] = "abcghjdhajcag";
char c='c';
printf("%s", my_strchr(arr1, c));
system("pause");
return 0;
}