summaryrefslogtreecommitdiff
path: root/src/stdio/fsetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fsetpos.c')
-rw-r--r--src/stdio/fsetpos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdio/fsetpos.c b/src/stdio/fsetpos.c
new file mode 100644
index 0000000..779cb3c
--- /dev/null
+++ b/src/stdio/fsetpos.c
@@ -0,0 +1,6 @@
+#include "stdio_impl.h"
+
+int fsetpos(FILE *f, const fpos_t *pos)
+{
+ return __fseeko(f, *(const long long *)pos, SEEK_SET);
+}