diff options
Diffstat (limited to 'tests/write.c')
-rw-r--r-- | tests/write.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/write.c b/tests/write.c index 104cfdc..e503951 100644 --- a/tests/write.c +++ b/tests/write.c @@ -20,20 +20,20 @@ #include <stdio.h> int main(void) { - FILE *fp = NULL; - int b = 1; - char c = '\0'; - if ((fp = tmpfile()) == NULL) { - perror("tmpfile"); - raise(SIGABRT); - } - for (;;b++) { - if (fwrite(&c, 1, 1, fp) == 0) { - perror("fwrite"); - raise(SIGABRT); - } - if (b % 1000 == 0) { - fprintf(stderr, "Wrote %u octets\n", b); - } - } + FILE *fp = NULL; + int b = 1; + char c = '\0'; + if ((fp = tmpfile()) == NULL) { + perror("tmpfile"); + raise(SIGABRT); + } + for (;;b++) { + if (fwrite(&c, 1, 1, fp) == 0) { + perror("fwrite"); + raise(SIGABRT); + } + if (b % 1000 == 0) { + fprintf(stderr, "Wrote %u octets\n", b); + } + } } |