git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
io
/
eof.c
1
#include <windows.h>
2
#include <crtdll/io.h>
3
4
int _eof( int _fd )
5
{
6
int cur_pos = _lseek(_fd, 0, SEEK_CUR);
7
int end_pos = _filelength( _fd );
8
if ( cur_pos == -1 || end_pos == -1)
9
return -1;
10
11
if ( cur_pos == end_pos )
12
return 1;
13
14
return 0;
15
16
17
18
19
}