NAME

zkRewind - reset file position indicator in a stream

SYNOPSIS

#include "zkStdio.h"

void zkRewind(FILE* stream);

DESCRIPTION

The call:

rewind(stream)

is equivalent to:

(void) fseek(stream, 0L, SEEK_SET)

except that zkRewind() also clears the error indicator.

RETURN VALUE

The zkRewind() function returns no value.

ERRORS

Refer to zkFseek() with the exception of [EINVAL] which does not apply.

APPLICATION USAGE

Because zkRewind() does not return a value, an application wishing to detect errors should clear errno, then call zkRewind(), and if errno is non-zero, assume an error has occurred.