Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / stdio / fgetpos.c
1 /*
2  * fgetpos.c - get the position in the file
3  */
4 /* $Id: fgetpos.c,v 1.3 1994/06/24 11:49:01 ceriel 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 }