diff options
author | kdx <kikoodx@paranoici.org> | 2023-01-10 02:00:47 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-01-10 02:00:47 +0100 |
commit | ba076c561a3ed9b2c4bbf13851b248e89870f809 (patch) | |
tree | 792514c367122fb2b59da5c4f98f3bfa1d3f345a | |
parent | 12af10bf255d43829025ce2114262d7e34ad381e (diff) | |
download | twtxtc-ba076c561a3ed9b2c4bbf13851b248e89870f809.tar.gz |
split fprintf in fputs/putc
-rw-r--r-- | twtxt.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |