source:
trunk/minix/lib/stdio/fgetpos.c@
10
| Last change on this file since 10 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 270 bytes | |
| Line | |
|---|---|
| 1 | /* |
| 2 | * fgetpos.c - get the position in the file |
| 3 | */ |
| 4 | /* $Header: /cvsup/minix/src/lib/stdio/fgetpos.c,v 1.1.1.1 2005/04/21 14:56:35 beng Exp $ */ |
| 5 | |
| 6 | #include <stdio.h> |
| 7 | |
| 8 | int |
| 9 | fgetpos(FILE *stream, fpos_t *pos) |
| 10 | { |
| 11 | *pos = ftell(stream); |
| 12 | if (*pos == -1) return -1; |
| 13 | return 0; |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.