1. 프로토타입
int ft_isalnum(int c)
#include <ctype.h>
int isalnum(int c);
2. 용도
알파벳 또는 숫자인지 아닌지 판별.
3. 리턴값
알파벳 또는 숫자문자라면 1, 아니면 0 반환
4. 코드 구현
int ft_isalnum(int c)
{
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') ||
(c >= '0' && c <= '9'))
return (1);
return (0);
}