/* * Test for blank strings. * $Id$ * Copyright (c) 1997 by Tycho Softworks. * For conditions of distribution and reuse see product license. */ #include char __SPACES[] = " \t\r\n"; bool strblank(const char *str) { if(!str) return TRUE; while(*str) { if(!strchr(__SPACES, *str)) return FALSE; ++str; } return TRUE; }