Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chrtbl(1)

isdigit(3)

islower(3)

isupper(3)

isalpha(3)

isalnum(3)

isspace(3)

iscntrl(3)

ispunct(3)

isprint(3)

isgraph(3)

isascii(3)

tolower(3)

toupper(3)

toascci(3)

_tolower(3)

_toupper(3)

setchrclass(3)

stdio(3)

environ(4)



  isxdigit(3)                         CLIX                         isxdigit(3)



  NAME

    isxdigit - Tests whether a character is a digit or one of the characters
    [a-fA-F]

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <ctype.h>

    int isxdigit(
      int c );

  PARAMETERS

    c   An integer representing a character

  DESCRIPTION

    The isxdigit() macro tests for any character for which isdigit() is true
    (is one of the digits 0 through 9) or for the letters a through f or A
    through F.  The isxdigit() macro is defined on valid members of the
    character set and on the single value EOF (guaranteed not to be a
    character set member.  See stdio.

    The classification macro isxdigit() does a table lookup.

  EXAMPLES

    To test if the character read from stdin is a zero-to-nine digit or one of
    the characters [a-fA-F]:

    #include <ctype.h>
    int c;
       .
       .
       .
    /* get a character from stdin */
    printf("enter a character:");
    c = getchar();

    /* check to see if a digit or one of [a-fA-F] was read */
    if (isxdigit(c))
         printf("read a digit"\n);


  CAUTIONS




  2/94 - Intergraph Corporation                                              1






  isxdigit(3)                         CLIX                         isxdigit(3)



    If the argument to any character handling macro is not in the domain of
    the function, the result is undefined.

  RETURN VALUES

    The isxdigit() macro returns 0 for false and nonzero numbers for true.

  RELATED INFORMATION

    Commands:  chrtbl(1)

    Functions: isdigit(3), islower(3), isupper(3), isalpha(3), isalnum(3),
    isspace(3), iscntrl(3), ispunct(3), isprint(3), isgraph(3), isascii(3),
    tolower(3), toupper(3), toascci(3), _tolower(3), _toupper(3),
    setchrclass(3), stdio(3)

    Miscellany:  environ(4)





































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026