Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

CTYPE(3C)

��������
ctype: isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii - ������������� ��������

���������

	#include <ctype.h>
	
	int isalpha (c)
	int c;
	
	...

��������
������������� ���� ������� �������������� ����� ��������, ���������� ������ ��������, ����� ��������� �������. ������ �� �������� �������� ����������, ������������ ��������� �������� ��� ������, � 0 - ��� ����. ������ isascii ��������� ��� ������ ������ ��������. ��������� ����������, ������ ���� ������� isascii �������, � ����� ��� ������������� ��������, �� ����������� ����� ASCII, � ������ EOF [-1; ��. stdio(3S)].

���� ����������� �������, ����������� ������ �� ��������:
isalpha c �����.
isupper c ������� �����.
islower c ����� �����.
isdigit c �����: [0-9].
isxdigitc ����������������� �����: [0-9], [A-F] ��� [a-f].
isalnum c ���������-�������� ������ (����� ��� �����).
isspace c ������, ���������, ������� �������, ������� ������, ������������ ��������� ��� ������ �������� � ����� ��������.
ispunct c ���� ���������� (�� ���� �� ����������� � �� ���������-�������� ������).
isprint c �������� ������; ���� ����� �������� ������������� � ��������� �� 040 (������) �� 0176 (������).
isgraph c �������� ������, �� �� ������.
iscntrl c ������ �������� (0177) ��� ������� ����������� ������ (��� ������ 040).
isascii c �������� ASCII-�������� (��� ������ 0200).

��. �����
stdio(3S), ascii(5).

�����������
���� �������� ������-���� �� ������������� �������� �� ����������� ��������� ���������� ��������, ��������� �������������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT