Digital UNIX Diffs - fsetpos(5) Digital UNIX Diffs - fsetpos(5)NAME
fsetpos, fgetpos - Reposition the file pointer of a stream
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
int fsetpos(
FILE *stream,
const fpos_t *position);
int fgetpos(
FILE *stream,
fpos_t *position);
PARAMETERS
Specifies the I/O stream. Specifies the value of the file position
indicator.
DIFFERENCESvms-vaxc(5): OpenVMS VAX C vs DEC C Differences
With the DEC C RTL, a call to these functions clears the end-of-file
flag (EOF). With the VAX C RTL, such a call does not clear the flag.
With the DEC C RTL, fsetpos(3) can be used for file positioning on a
file opened in append mode (ie "a"). The VAX C RTL does not support
file positioning for files opened in append mode.
The DEC C RTL allows file positioning calls to seek to an arbitrary
byte within fixed-length record files. The VAX C RTL treats fixed-
length record files like all record files and only allows file posi‐
tioning to record boundaries.
alpha-32bits(5): 32 vs 64 bit Differences
When setting or getting the file positions for a file with the ANSI C
functions of fsetpos() or fgetpos(), respectively, the file position is
specified by a value of type fpos_t. This type is defined as a long in
the 64-bit Digital UNIX environment.
RELATED INFORMATION
Functions: fsetpos(3), fgetpos(3), fseek(5), rewind(5)CATEGORY INDEXvms-vaxc(5), alpha-32bits(5)
delim off
Digital UNIX Diffs - fsetpos(5)