Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

isxdigit - Sedezimale Ziffer?

&pagelevel(4)&pagelevel

Definition

#include <ctype.h>

int isxdigit(int c);

isxdigit überprüft, ob das Zeichen c eine sedezimale Ziffer (0-9), (A-F) bzw. (a-f) ist. c ist der EBCDIC-Wert des zu überprüfenden Zeichens.

Returnwert

!= 0

Sedezimale Ziffer.


0

keine sedezimale Ziffer.           

Hinweise

isxdigit ist sowohl als Makro als auch als Funktion realisiert (siehe Abschnitt "Funktionen und Makros“).

Beispiel

#include <ctype.h>
#include <stdio.h>
int main(void)
{
  int c;
  while((c = getchar()) != EOF)
    printf("%s : %c\n",((isxdigit(c))? "Sedezimale Ziffer" : "Sonstiges"), c);
  return 0;
}

Siehe auch

isalnum, isascii, iscntrl, isalpha, islower, isprint, ispunct, isgraph, isspace, isupper, isdigit, isebcdic, iswxdigit