source:
EcnlProtoTool/trunk/musl-1.1.18/src/stdio/ext2.c
Last change on this file was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 351 bytes |
Line | |
---|---|
1 | #include "stdio_impl.h" |
2 | |
3 | size_t __freadahead(FILE *f) |
4 | { |
5 | return f->rend - f->rpos; |
6 | } |
7 | |
8 | const char *__freadptr(FILE *f, size_t *sizep) |
9 | { |
10 | size_t size = f->rend - f->rpos; |
11 | if (!size) return 0; |
12 | *sizep = size; |
13 | return (const char *)f->rpos; |
14 | } |
15 | |
16 | void __freadptrinc(FILE *f, size_t inc) |
17 | { |
18 | f->rpos += inc; |
19 | } |
20 | |
21 | void __fseterr(FILE *f) |
22 | { |
23 | f->flags |= F_ERR; |
24 | } |
Note:
See TracBrowser
for help on using the repository browser.