Partager via


fsetpos (Windows CE 5.0)

Send Feedback

Developing an Application > Microsoft C Run-time Library for Windows CE > Run-time Library Reference

Sets the stream-position indicator.

int fsetpos(    FILE*stream,const fpos_t*pos);

Parameters

  • stream
    Pointer to FILE structure.
  • pos
    Position-indicator storage.

Return Values

If successful, fsetpos returns 0.

On failure, the function returns a nonzero value.

Remarks

The fsetpos function sets the file-position indicator for stream to the value of pos, which is obtained in a prior call to fgetpos against stream.

The function clears the end-of-file indicator and undoes any effects of ungetc on stream.

After calling fsetpos, the next operation on stream can be either input or output.

Example

See the example for fgetpos.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: stdlib.h.
Link Library: coredll.dll.

See Also

fgetpos

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.