diff options
| author | Anton Kling <anton@kling.gg> | 2024-12-12 16:03:08 +0100 | 
|---|---|---|
| committer | Anton Kling <anton@kling.gg> | 2024-12-12 16:03:08 +0100 | 
| commit | b033314bf1901d436dc71d41d5e1f37dda47e511 (patch) | |
| tree | 120bd137888a7f96904a47af7d20422608ffe225 /userland/libc/stdio/fputs.c | |
| parent | dcbcdbdc5bcfb86eca05fb655e3bf009d89e39e0 (diff) | |
formatting: Use clang-format on all projects
This commit also add braces to all `if` statements.
Diffstat (limited to 'userland/libc/stdio/fputs.c')
| -rw-r--r-- | userland/libc/stdio/fputs.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/userland/libc/stdio/fputs.c b/userland/libc/stdio/fputs.c index 1b70c66..5570693 100644 --- a/userland/libc/stdio/fputs.c +++ b/userland/libc/stdio/fputs.c @@ -2,8 +2,10 @@  int fputs(const char *s, FILE *stream) {    const char *b = s; -  for (; *s; s++) -    if (0 == fwrite(s, 1, 1, stream)) +  for (; *s; s++) { +    if (0 == fwrite(s, 1, 1, stream)) {        return EOF; +    } +  }    return s - b;  } |