X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/802e3b1cc242d149fc23cc65f1714c99c1f8520a..ebd914f74112325a90ce2b5065506fe4ad51cf9e:/src/cdecl99.c diff --git a/src/cdecl99.c b/src/cdecl99.c index fc9d3b2..485fe86 100644 --- a/src/cdecl99.c +++ b/src/cdecl99.c @@ -122,14 +122,9 @@ static void print_help(void) printf(_("Report bugs to <%s>.\n"), PACKAGE_BUGREPORT); } -static bool is_blank_line(const char *line) +static int is_blank_line(const char *line) { - for (size_t i = 0; line[i]; i++) { - if (!isblank((unsigned char)line[i])) - return false; - } - - return true; + return !line[strspn(line, " \t")]; } static int repl(void)