blob: afd8b34e6ea6446db9a239f7ed0cdb4c4c6ba3a8 (
plain) (
tree)
|
|
#include "stdio_impl.h"
#include <stdio_ext.h>
size_t __freadahead(FILE *f)
{
return f->rend - f->rpos;
}
const char *__freadptr(FILE *f, size_t *sizep)
{
size_t size = f->rend - f->rpos;
if (!size) return 0;
*sizep = size;
return (const char *)f->rpos;
}
void __freadptrinc(FILE *f, size_t inc)
{
f->rpos += inc;
}
void __fseterr(FILE *f)
{
f->flags |= F_ERR;
}
|