update for HEAD-2003091401
[reactos.git] / lib / crtdll / stdio / fgetpos.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/errno.h>
4
5 /*
6  * @implemented
7  */
8 int fgetpos(FILE *stream, fpos_t *pos)
9 {
10   if (stream && pos)
11   {
12     *pos = (fpos_t)ftell(stream);
13     return 0;
14   }
15   //errno = EFAULT;
16   return 1;
17 }