Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / src / clib / isspace.c
1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2005, 2012 Oracle and/or its affiliates.  All rights reserved.
5  *
6  * $Id$
7  */
8
9 #include "db_config.h"
10
11 #include "db_int.h"
12
13 /*
14  * isspace --
15  *
16  * PUBLIC: #ifndef HAVE_ISSPACE
17  * PUBLIC: int isspace __P((int));
18  * PUBLIC: #endif
19  */
20 int
21 isspace(c)
22         int c;
23 {
24         return (c == '\t' || c == '\n' ||
25             c == '\v' || c == '\f' || c == '\r' || c == ' ' ? 1 : 0);
26 }