diff options
Diffstat (limited to 'db-4.8.30/clib/isdigit.c')
-rw-r--r-- | db-4.8.30/clib/isdigit.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/db-4.8.30/clib/isdigit.c b/db-4.8.30/clib/isdigit.c new file mode 100644 index 0000000..1fc0a26 --- /dev/null +++ b/db-4.8.30/clib/isdigit.c @@ -0,0 +1,28 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2005-2009 Oracle. All rights reserved. + * + * $Id$ + */ + +#include "db_config.h" + +#include "db_int.h" + +/* + * isdigit -- + * + * PUBLIC: #ifndef HAVE_ISDIGIT + * PUBLIC: int isdigit __P((int)); + * PUBLIC: #endif + */ +int +isdigit(c) + int c; +{ + /* + * Depends on ASCII-like character ordering. + */ + return (c >= '0' && c <= '9' ? 1 : 0); +} |