2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 Tell the position in a stream.
10 #include <proto/dos.h>
14 /*****************************************************************************
25 Tell the current position in a stream.
28 stream - Obtain position of this stream
31 The position on success and -1 on error.
32 If an error occurred, the global variable errno is set.
41 fopen(), fseek(), fwrite()
45 ******************************************************************************/
49 fdesc
*fdesc
= __getfdesc(stream
->fd
);
57 fh
= fdesc
->fcb
->handle
;
60 cnt
= Seek (fh
, 0, OFFSET_CURRENT
);
63 errno
= __stdc_ioerr2errno (IoErr ());