diff options
Diffstat (limited to 'util/sbase/libutil/putword.c')
-rw-r--r-- | util/sbase/libutil/putword.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/util/sbase/libutil/putword.c b/util/sbase/libutil/putword.c new file mode 100644 index 00000000..80a9860a --- /dev/null +++ b/util/sbase/libutil/putword.c @@ -0,0 +1,16 @@ +/* See LICENSE file for copyright and license details. */ +#include <stdio.h> + +#include "../util.h" + +void +putword(FILE *fp, const char *s) +{ + static int first = 1; + + if (!first) + fputc(' ', fp); + + fputs(s, fp); + first = 0; +} |