1292133Sdes/* isblank - compatibility implementation of isblank 2292133Sdes * 3292133Sdes * Copyright (c) 2015, NLnet Labs. All rights reserved. 4292133Sdes * 5292133Sdes * This software is open source. 6292133Sdes * 7292133Sdes * Redistribution and use in source and binary forms, with or without 8292133Sdes * modification, are permitted provided that the following conditions 9292133Sdes * are met: 10292133Sdes * 11292133Sdes * Redistributions of source code must retain the above copyright notice, 12292133Sdes * this list of conditions and the following disclaimer. 13292133Sdes * 14292133Sdes * Redistributions in binary form must reproduce the above copyright notice, 15292133Sdes * this list of conditions and the following disclaimer in the documentation 16292133Sdes * and/or other materials provided with the distribution. 17292133Sdes * 18292133Sdes * Neither the name of the NLNET LABS nor the names of its contributors may 19292133Sdes * be used to endorse or promote products derived from this software without 20292133Sdes * specific prior written permission. 21292133Sdes * 22292133Sdes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23292133Sdes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24292133Sdes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25292133Sdes * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26292133Sdes * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27292133Sdes * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 28292133Sdes * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29292133Sdes * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30292133Sdes * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31292133Sdes * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32292133Sdes * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33292133Sdes */ 34292133Sdes 35292133Sdes#include "config.h" 36292133Sdes 37292133Sdes/* return true for a blank character: space or tab */ 38292133Sdesint isblank(int c); 39292133Sdes 40292133Sdes/* implementation of isblank. unsigned char is the argument */ 41292133Sdesint 42292133Sdesisblank(int c) 43292133Sdes{ 44292133Sdes return (c==' ' || c=='\t'); 45292133Sdes} 46