ishexdigit.c (530B)
1 /************************************************************************* 2 * This file is part of Crosroads 1.23, a load balancer and fail over 3 * utility for TCP. Copyright (c) Karel Kubat, distributed under GPL. 4 * Visit http://crossroads.e-tunity.com for information. 5 *************************************************************************/ 6 #include "crossroads.h" 7 8 int is_hex_digit (char ch) { 9 if ( (ch >= '0' && ch <= '9') || 10 (ch >= 'a' && ch <= 'f') || 11 (ch >= 'A' && ch <= 'F') ) 12 return (1); 13 return (0); 14 } 15