Chromium Code Reviews

Side by Side Diff: fusl/src/stdio/fgetpos.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 #include "stdio_impl.h" 1 #include "stdio_impl.h"
2 2
3 int fgetpos(FILE *restrict f, fpos_t *restrict pos) 3 int fgetpos(FILE* restrict f, fpos_t* restrict pos) {
4 { 4 off_t off = __ftello(f);
5 » off_t off = __ftello(f); 5 if (off < 0)
6 » if (off < 0) return -1; 6 return -1;
7 » *(off_t *)pos = off; 7 *(off_t*)pos = off;
8 » return 0; 8 return 0;
9 } 9 }
10 10
11 LFS64(fgetpos); 11 LFS64(fgetpos);
OLDNEW

Powered by Google App Engine