INtime SDK Help
fsetpos

Sets a stream's file pointer position-indicator.

#include <stdio.h>

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

Parameters

stream
Pointer to FILE structure.
pos
File pointer position-indicator storage, which is obtained in a prior call to fgetpos.

Remarks

This function clears the end-of-file indicator. After this call, the next operation on the stream may be either input or output.

Return Values

0 (zero).
Success.
Any other value; the function sets errno to one of these values:
EBADF The specified stream is not a valid file descriptor or is not accessible.
EINVAL The stream value is invalid.
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdio.h stdio.h clib.lib

See Also

fgetpos