C Tutorial/ctype.h/isxdigit — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:32, 25 мая 2010
isxdigit
Item Value Header file ctype.h Declaration int isxdigit(int ch); Return returns nonzero if ch is a hexadecimal digit; otherwise zero is returned.
A hexadecimal digit will be in one of these ranges: A-F, a-f, or 0-9.
<source lang="cpp">#include <ctype.h>
#include <stdio.h> int main(void) { char ch; for(;;) { ch = getchar(); if(ch == "."){ break; } if(isxdigit(ch))(){ printf("%c is hexadecimal digit\n", ch); } } return 0; }</source>