4.45 _sys_seek()

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

Syntax

int _sys_seek(FILEHANDLE fh, long pos);

Usage

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

Returns

The result is:

  • Negative if an error occurs.

  • Non-negative if no error occurs.

Non-ConfidentialPDF file icon PDF versionARM 100073_0607_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.