diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-26 22:43:30 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-12-29 23:36:21 +0100 |
| commit | 52c18e60929b64285d4bb333f87482d954c9b2e0 (patch) | |
| tree | 836ab3a01d160f45cda4f5a28522fc0bf471011c /src/section/custom.c | |
| download | nanowasm-52c18e60929b64285d4bb333f87482d954c9b2e0.tar.gz | |
First commitfirst-step
Diffstat (limited to 'src/section/custom.c')
| -rw-r--r-- | src/section/custom.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/section/custom.c b/src/section/custom.c new file mode 100644 index 0000000..9544f17 --- /dev/null +++ b/src/section/custom.c @@ -0,0 +1,17 @@ +#include <sections.h> +#include <wasm_types.h> +#include <errno.h> +#include <stdio.h> +#include <string.h> + +int section_custom(struct wasmfs *const w, FILE *const f, + const unsigned long len) +{ + if (fseek(f, len, SEEK_CUR)) + { + fprintf(stderr, "%s: fseek(3): %s\n", __func__, strerror(errno)); + return -1; + } + + return 0; +} |
