xref: /freebsd-src/contrib/mandoc/compat_isblank.c (revision 61d06d6bd19dafe8ea971dd43e8328fa1b473456)
1*61d06d6bSBaptiste Daroussin #include "config.h"
2*61d06d6bSBaptiste Daroussin 
3*61d06d6bSBaptiste Daroussin #if HAVE_ISBLANK
4*61d06d6bSBaptiste Daroussin 
5*61d06d6bSBaptiste Daroussin int dummy;
6*61d06d6bSBaptiste Daroussin 
7*61d06d6bSBaptiste Daroussin #else
8*61d06d6bSBaptiste Daroussin 
9*61d06d6bSBaptiste Daroussin /*	$Id: compat_isblank.c,v 1.2 2015/10/06 18:32:19 schwarze Exp $	*/
10*61d06d6bSBaptiste Daroussin /*
11*61d06d6bSBaptiste Daroussin  * Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
12*61d06d6bSBaptiste Daroussin  *
13*61d06d6bSBaptiste Daroussin  * Permission to use, copy, modify, and distribute this software for any
14*61d06d6bSBaptiste Daroussin  * purpose with or without fee is hereby granted, provided that the above
15*61d06d6bSBaptiste Daroussin  * copyright notice and this permission notice appear in all copies.
16*61d06d6bSBaptiste Daroussin  *
17*61d06d6bSBaptiste Daroussin  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
18*61d06d6bSBaptiste Daroussin  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
19*61d06d6bSBaptiste Daroussin  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
20*61d06d6bSBaptiste Daroussin  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21*61d06d6bSBaptiste Daroussin  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
22*61d06d6bSBaptiste Daroussin  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
23*61d06d6bSBaptiste Daroussin  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24*61d06d6bSBaptiste Daroussin  */
25*61d06d6bSBaptiste Daroussin 
26*61d06d6bSBaptiste Daroussin int
27*61d06d6bSBaptiste Daroussin isblank(int c)
28*61d06d6bSBaptiste Daroussin {
29*61d06d6bSBaptiste Daroussin 
30*61d06d6bSBaptiste Daroussin 	return c == ' ' || c == '\t';
31*61d06d6bSBaptiste Daroussin }
32*61d06d6bSBaptiste Daroussin 
33*61d06d6bSBaptiste Daroussin #endif
34