MCPcopy Create free account
hub / github.com/NetHack/NetHack / onlyspace

Function onlyspace

src/hacklib.c:418–425  ·  view source on GitHub ↗

is a string entirely whitespace? */

Source from the content-addressed store, hash-verified

416
417/* is a string entirely whitespace? */
418boolean
419onlyspace(const char *s)
420{
421 for (; *s; s++)
422 if (*s != ' ' && *s != '\t')
423 return FALSE;
424 return TRUE;
425}
426
427/* expand tabs into proper number of spaces (in place) */
428char *

Callers 1

writeentryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected