repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
forget difference between big and small commands - obsolete with vm.
[minix.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
}