_sys_seek()

Defined in rt_sys.h, this function puts the file pointer at offset pos from the beginning of the file.

Show/hideSyntax

int _sys_seek(FILEHANDLE fh, long pos);

Show/hideUsage

This function sets the current read or write position to the new location pos relative to the start of the current file fh.

Show/hideReturns

The result is:

  • non-negative if no error occurs

  • negative if an error occurs.

Show/hideSee also

Reference

Using ARM® C and C++ Libraries and Floating-Point Support:

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0492F
Non-ConfidentialID091611