質問です。このreturn文の中の((char*)str)は
キャラクター型のポインタで返すために必要なんですか?
char *str_char(const char *str, int c)
{
for ( ; *str; str++) {
if (*str == c)
return ((char*)str);
}
return (NULL);
}