Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/core/kernel/src/wasm/posix/stdio.c
1070 views
1
// These two are missing from zig's libc for some reason. I don't think
2
// it is possible to express these in ziglang either.
3
#include <stdarg.h>
4
#include <stdio.h>
5
int fiprintf(FILE *restrict stream, const char *restrict format, ...) {
6
va_list va;
7
va_start(va, format);
8
vfprintf(stream, format, va);
9
va_end(va);
10
}
11
PUBLIC(fiprintf)
12
13
int siprintf(char *restrict s, const char *restrict format, ...) {
14
va_list va;
15
va_start(va, format);
16
vsprintf(s, format, va);
17
va_end(va);
18
}
19
20