:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / msvcrt / io / filelen.c
1 #include <windows.h>
2 #include <msvcrt/io.h>
3
4 long _filelength(int _fd)
5 {
6   return GetFileSize(_get_osfhandle(_fd),NULL);
7 }
8
9 __int64 _filelengthi64(int _fd)
10 {
11   long lo_length, hi_length;
12
13   lo_length = GetFileSize(_get_osfhandle(_fd), &hi_length);
14
15   return((((__int64)hi_length) << 32) + lo_length);
16 }