Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Examples  

test_is_hexa.c

This file shows how to use the function is_hexa().

#include <stdio.h>
#include "strings_utils.h"


int main(int argc, char *argv[])
{
  int    n;

  if (argc != 2)
  {
    fprintf (stdout, "\nUsage is_hexa.test string\n");
    return 1;
  }

  n = is_hexa(argv[1]);

  if (n == 0)
  {
    fprintf (stdout, "\nThis is a hexadecimal\n");
  }
  else
  {
    fprintf (stdout, "\nThis is not a hexadecimal\n");
  }

  fprintf (stdout, "\n\n");
  return 1;
}


Generated on Thu Apr 3 16:23:40 2003 for Common_C_libraries by doxygen1.3-rc1