080aff3c9de71d3a3ca71a0ae1bf758fe3d60208 kent Wed Nov 24 14:15:48 2021 -0800 Adding dotForUserEnd() function to help avoid unclosed lines of dots. diff --git src/lib/obscure.c src/lib/obscure.c index c6f07cf..1c05208 100644 --- src/lib/obscure.c +++ src/lib/obscure.c @@ -873,30 +873,36 @@ /* Write out a dot every _dotForUserMod times this is called. */ { static int dot = -10; /* Check to see if dot has been initialized. */ if(dot == - 10) dot = _dotForUserMod; if (--dot <= 0) { putc('.', stderr); fflush(stderr); dot = _dotForUserMod; } } +void dotForUserEnd() +/* Write out new line at end of dots for user */ +{ +putc('\n', stderr); +} + void spaceToUnderbar(char *s) /* Convert white space to underbar. */ { char c; while ((c = *s) != 0) { if (isspace(c)) *s = '_'; ++s; } } long long currentVmPeak() /* return value of peak Vm memory usage (if /proc/ business exists) */ {