git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3c5abf4860cb47734d1f147685a47fac0b22b4e7
[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
int fgetpos(FILE *stream, fpos_t *pos)
6
{
7
if (stream && pos)
8
{
9
*pos = (fpos_t)ftell(stream);
10
return 0;
11
}
12
//errno = EFAULT;
13
return 1;
14
}