O'Reilly logo
  • Ivan Petrov thinks this is interesting:

Standard I/O also provides rewind( ), as a shortcut:

#include <stdio.h>

void rewind (FILE *stream);

This invocation:

rewind (stream);

resets the position back to the start of the stream. It is equivalent to:

From

Cover of Linux System Programming

Note

shortcut for going back to beginning