diff options
Diffstat (limited to 'db/clib/isspace.c')
-rw-r--r-- | db/clib/isspace.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/db/clib/isspace.c b/db/clib/isspace.c new file mode 100644 index 000000000..18ed4dcfc --- /dev/null +++ b/db/clib/isspace.c @@ -0,0 +1,27 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2005-2006 + * Oracle Corporation. All rights reserved. + * + * $Id: isspace.c,v 1.2 2006/08/24 14:45:10 bostic Exp $ + */ + +#include "db_config.h" + +#include "db_int.h" + +/* + * isspace -- + * + * PUBLIC: #ifndef HAVE_ISSPACE + * PUBLIC: int isspace __P((int)); + * PUBLIC: #endif + */ +int +isspace(c) + int c; +{ + return (c == '\t' || c == '\n' || + c == '\v' || c == '\f' || c == '\r' || c == ' ' ? 1 : 0); +} |