:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / crtdll / stdio / fgetpos.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <crtdll/stdio.h>
3 #include <crtdll/errno.h>
4
5 int
6 fgetpos(FILE *stream, fpos_t *pos)
7 {
8   if (stream && pos)
9   {
10     *pos = (fpos_t)ftell(stream);
11     return 0;
12   }
13   //errno = EFAULT;
14   return 1;
15 }