From ba076c561a3ed9b2c4bbf13851b248e89870f809 Mon Sep 17 00:00:00 2001 From: kdx Date: Tue, 10 Jan 2023 02:00:47 +0100 Subject: split fprintf in fputs/putc --- twtxt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twtxt.c b/twtxt.c index f7f8cbb..73ca46c 100644 --- a/twtxt.c +++ b/twtxt.c @@ -132,7 +132,9 @@ int main(int argc, char *argv[]) { timebuf[sizeof(timebuf)-1] = '\0'; /* Terminate! */ /* Build the new line and write it into the file: */ - fprintf(twtxtfile, "%s\t%s\n", timebuf, text); + fputs(timebuf, twtxtfile); + putc('\t', twtxtfile); + fputs(text, twtxtfile); /* Done. */ fclose(twtxtfile); -- cgit v1.2.3