1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2005,2008 Oracle. All rights reserved. 5 * 6 * $Id: isdigit.c,v 1.5 2008/01/08 20:58:08 bostic Exp $ 7 */ 8 9#include "db_config.h" 10 11#include "db_int.h" 12 13/* 14 * isdigit -- 15 * 16 * PUBLIC: #ifndef HAVE_ISDIGIT 17 * PUBLIC: int isdigit __P((int)); 18 * PUBLIC: #endif 19 */ 20int 21isdigit(c) 22 int c; 23{ 24 /* 25 * Depends on ASCII-like character ordering. 26 */ 27 return (c >= '0' && c <= '9' ? 1 : 0); 28} 29