|
|
1.1 ! root 1: /* ! 2: * libc/stdio/fgetpos.c ! 3: * ANSI-compliant C standard i/o library. ! 4: * fgetpos() ! 5: * ANSI 4.9.9.1. ! 6: * Get file position. ! 7: * Assumes files not longer than LONG_MAX, ! 8: * so fgetpos() is just an ftell(). ! 9: * ftell() already sets errno if an error occurs. ! 10: */ ! 11: ! 12: #include <stdio.h> ! 13: ! 14: int ! 15: fgetpos(stream, pos) FILE *stream; fpos_t *pos; ! 16: { ! 17: return ((*pos = (fpos_t)ftell(stream)) != -1L); ! 18: } ! 19: ! 20: /* end of libc/stdio/fgetpos.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.