blob: fb891ec9e4ab088c00912f6bf2535c8cdcc4cb4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
#include <assert.h>
int fseek(FILE *stream, long offset, int whence) {
return stream->seek(stream, offset, whence);
/*
switch (whence) {
case SEEK_SET:
stream->offset_in_file = offset;
break;
case SEEK_CUR:
stream->offset_in_file += offset;
break;
case SEEK_END:
// FIXME
assert(0);
break;
}
// FIXME: Error checking
return 0;*/
}
|