SYNOPSIS
#include <stdio.h>
int fsetpos(FILE *stream, const fpos_t *pos);
int fsetpos64(FILE *stream, const fpos64_t *pos);
DESCRIPTION
The
A successful call to
The
PARAMETERS
- stream
-
Points to the stream whose file position indicator is to be changed.
- pos
-
Points to a structure that holds positional information.
RETURN VALUES
If successful, the
- EAGAIN
-
The O_NONBLOCK flag is set for the file descriptor underlying stream, and the process would be delayed in the write operation.
- EBADF
-
The file descriptor underlying stream is not valid.
- EINTR
-
A signal interrupted the call.
- EINVAL
-
The whence argument is invalid.
- ENOSPC
-
There was no free space remaining on the device containing the file.
- EPIPE
-
The file underlying stream is a pipe or a FIFO.
CONFORMANCE
ANSI/ISO 9899-1990.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
If the stream is writable, and there is buffered data which has not yet
been written to the file,
The file positions reported by
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Miscellaneous:
- lf64
PTC MKS Toolkit 10.4 Documentation Build 39.