ft_isprint

nawkim·2021년 5월 26일
0

libft

목록 보기
5/44

1. 프로토타입

int	ft_isprint(int c)
  • 헤더
#include <ctype.h>
  • 형태
int	isprint(int c)

2. 용도

출력 가능한지 아닌지 판단.

3. 리턴값

출력 가능(아스키코드 32 ~ 126)이라면 1, 아니면 0 반환.

4. 코드 구현

int	ft_isprint(int c)
{
	if (c >= 32 && c <= 126)
		return (1);
	return (0);
}
profile
공부 기록.

0개의 댓글