forget difference between big and small commands - obsolete with vm.
[minix.git] / lib / stdio / fgetpos.c
blobd92e30c00df4936aacea65ddca456a8d4a4c9dee
1 /*
2 * fgetpos.c - get the position in the file
3 */
4 /* $Header$ */
6 #include <stdio.h>
8 int
9 fgetpos(FILE *stream, fpos_t *pos)
11 *pos = ftell(stream);
12 if (*pos == -1) return -1;
13 return 0;