2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 Tell the position in a stream.
10 #include <proto/dos.h>
15 /*****************************************************************************
26 Tell the current position in a stream.
29 stream - Obtain position of this stream
32 The position on success and -1 on error.
33 If an error occurred, the global variable errno is set.
42 fopen(), fseek(), fwrite()
46 ******************************************************************************/
50 fdesc
*fdesc
= __getfdesc(stream
->fd
);
58 fh
= (BPTR
)(fdesc
->fh
);
61 cnt
= Seek (fh
, 0, OFFSET_CURRENT
);
64 errno
= IoErr2errno (IoErr ());