summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fsetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/stdio/fsetpos.c')
-rw-r--r--userland/libc/stdio/fsetpos.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/userland/libc/stdio/fsetpos.c b/userland/libc/stdio/fsetpos.c
new file mode 100644
index 0000000..c39c545
--- /dev/null
+++ b/userland/libc/stdio/fsetpos.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+// FIXME: Error handling
+int fsetpos(FILE *stream, const fpos_t *pos) {
+ stream->offset_in_file = (long)(*pos);
+ return 0;
+}