diff options
| author | Jan Sucan <jan@jansucan.com> | 2020-12-25 12:50:00 +0100 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2020-12-25 12:50:00 +0100 |
| commit | 7a38545d0b8df7216c1300b379a51fb14374a4fa (patch) | |
| tree | b49926d37c44428a11ab4a8b6467f65c7d46a4c6 /file.c | |
| parent | e4ebac4e4dd5b8bc9c86de11489b7f267bf48814 (diff) | |
Apply clang-format
Diffstat (limited to 'file.c')
| -rw-r--r-- | file.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -5,19 +5,18 @@ #include "print.h" long -file_size(FILE * const file) +file_size(FILE *const file) { fpos_t p; - if ((fgetpos(file, &p) != 0) - || (fseek(file, 0L, SEEK_END) != 0)) { - return -1; + if ((fgetpos(file, &p) != 0) || (fseek(file, 0L, SEEK_END) != 0)) { + return -1; } const long size = ftell(file); if (fsetpos(file, &p) != 0) { - return -1; + return -1; } return size; |
