4.10.8. _sys_flen()

This function returns the current length of a file.

Syntax

long _sys_flen(FILEHANDLE fh);

Implementation

The function is required to convert fseek(, SEEK_END) into (, SEEK_SET) asrequired by _sys_seek().

If fseek() is used with an underlying system that does not directly support seeking relative to the end of a file, _sys_flen() must be defined. If the underlying system can seek relative to the end of a file, you can define fseek() so that _sys_flen() is not required.

Returns

This function returns the current length of the file fh, or a negative error indicator.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential