BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

krewind - rewind a data transport stream to the beginning

LIBRARY CALL

void krewind(
   kfile *file)

INPUT

OUTPUT

none

RETURN VALUE

none

DESCRIPTION

This function is a replacement for the system "rewind" call; krewind() supports all khoros data transport mechanisms, not just Unix files.

This function is used to re-position the data transport pointer to the beginning of the stream. It is equivalent to: (void) kfseek(file, 0L, 0);

The behavior of the function will differ depending on the data transport being used. For a file, it calls fseek() to reposition the file pointer; for shared memory segments, it simply resets the internal offset pointer.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/kstdio.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.