repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Uninitialized vector entry?
[minix3.git]
/
lib
/
stdio
/
fgetpos.c
blob
d92e30c00df4936aacea65ddca456a8d4a4c9dee
1
/*
2
* fgetpos.c - get the position in the file
3
*/
4
/* $Header$ */
5
6
#include <stdio.h>
7
8
int
9
fgetpos
(
FILE
*
stream
,
fpos_t
*
pos
)
10
{
11
*
pos
=
ftell
(
stream
);
12
if
(*
pos
== -
1
)
return
-
1
;
13
return
0
;
14
}