summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fseek.c
blob: cbccbb820b2f0f4edc05a5294192543107339344 (plain)
1
2
3
4
5
6
7
8
#include <assert.h>
#include <stdio.h>

int fseek(FILE *stream, long offset, int whence) {
  stream->read_buffer_stored = 0;
  assert(stream->seek);
  return stream->seek(stream, offset, whence);
}