Web | This Site

Learning C
C Function References
C Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | About TP |  | Advertising

# C - isxdigit function

## Synopsis:

    #include <stdio.h>

    int isxdigit(int c);

## Description:

The function returns nonzero if c is any of:

    0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F

## Return Value

The function returns nonzero if c is hexa digit otherwise this will return zero which will be equivalent to false.

## Example

    #include <stdio.h>

    int main() {

      if( isxdigit( 'Z' ) )
      {
         printf( "Character Z is Hexa digit\n" );
      }
      if( isxdigit( 'A' ) )
      {
         printf( "Character A is Hexa digit\n" );
      }
      return 0;
    }

It will proiduce following result:

    Character A is Hexa digit

Advertisement

Online Image Processing

Indian Baby Names