俺なら仕様の方を変えてこうする
const char* str_char(const char* str,char c)
{
while(*str&&*str!=c)++str;
return str;
}