diff options
author | Benji Dial <benji@benjidial.net> | 2024-05-19 11:39:07 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-05-19 11:39:07 -0400 |
commit | d2448d151edad03fb2ca2274cb02426f5fb69582 (patch) | |
tree | f5e92bf96fe3a87068a9365d693456d258c22180 /euler/source/io/fseek.cpp | |
parent | 17c1bd441de115720d7c6758550c49c1b4689900 (diff) | |
download | hilbert-os-d2448d151edad03fb2ca2274cb02426f5fb69582.tar.gz |
add font loading and rendering to daguerre
Diffstat (limited to 'euler/source/io/fseek.cpp')
-rw-r--r-- | euler/source/io/fseek.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/euler/source/io/fseek.cpp b/euler/source/io/fseek.cpp new file mode 100644 index 0000000..3254468 --- /dev/null +++ b/euler/source/io/fseek.cpp @@ -0,0 +1,11 @@ +#include <cstdio> + +namespace std { + + int fseek(FILE *stream, long offset, int origin) { + if (origin < 0 || origin > 2) + return 1; + return stream->try_seek((__euler_seek_from)origin, offset) ? 0 : 2; + } + +} |