DMSEEK(5ICD)

NAME
dmSeek - reposition a stream pointer in a stream

SYNOPSIS

#include "dmincl.h"
dmSeek (dmstream, offset, ptrname)
DM_STREAM *dmstream;
long offset;
long ptrname;

PARAMETERS

dmstream
    is a pointer to a valid DM_STREAM as obtained from function dmOpenStream().

offset
    the offset from the beginning of the stream.

ptrname
    the relative position in the stream.

DESCRIPTION
Function dmSeek() sets the position of the next input or output operation on the dmstream. The new position is at the signed distance offset bytes from either the beginning of the stream, or the current position, or from the end of the stream, according to the value of ptrname: 0, 1, or 2.

DIAGNOSTICS
dmSeek() returns non-zero for improper seeks, otherwise zero.

SEE ALSO
fseek(3S), dmOpenStream(5ICD).