/************************************************************* * File: lib/strempty.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */ #include "string.h" /** strempty(p) returns 1 if p contains nothing but isspace */ strempty(p) char *p; { if (!p) return(1); for (;*p;p++) if (!isspace(*p)) return(0); return(1); }