CARM User's Guide

Discontinued

isxdigit

Summary
#include <ctype.h>

int isxdigit (
  int c);   /* character to test */
Description

The isxdigit function tests c to determine if it is a hexadecimal digit ('A'-'F', 'a'-'f', or '0'-'9').

Return Value

The isxdigit function returns a value of 1 if c is a hexadecimal digit or a value of 0 if it is not.

See Also

isalnum, isalpha, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper

Example
#include <ctype.h>
#include <stdio.h> /* for printf */

void tst_isxdigit (void) {
  unsigned char i;
  char *p;

  for (i = 0; i < 128; i++) {
    p = (isxdigit (i) ? "YES" : "NO");

    printf ("isxdigit (%c) %s\n", i, p);
  }
}