2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
14 #include <aros/debug.h>
16 /*****************************************************************************
27 Tell the current position in a stream.
30 stream - Obtain position of this stream
33 The position on success and -1 on error.
34 If an error occurred, the global variable errno is set.
43 fopen(), fseek(), fwrite()
47 ******************************************************************************/
52 D(bug("[stdcio/ftell()] Entering\n"));
55 cnt
= Seek (fh
, 0, OFFSET_CURRENT
);
58 errno
= __stdc_ioerr2errno (IoErr ());
60 D(bug("[stdcio/ftell()] Leaving cnt=%d\n", cnt
));