1 /* 2 * fgetpos.c - get the position in the file 3 */ 4 /* $Header$ */ 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 } 15