libc: rename fctprintf to __libc_fctprintf

This commit is contained in:
2026-04-01 18:45:19 +01:00
parent 6787f28728
commit d53bbbb460
3 changed files with 7 additions and 7 deletions
+3
View File
@@ -4,3 +4,6 @@
[submodule "sys/ropkg"]
path = sys/ropkg
url = git@github.com:washh/ropkg.git
[submodule "lib/libfx"]
path = lib/libfx
url = https://g.wash.red/wash/fx.git
+3 -7
View File
@@ -1195,21 +1195,17 @@ int vsnprintf(char *buffer, size_t count, const char *format, va_list va)
return _vsnprintf(_out_buffer, buffer, count, format, va);
}
int fctprintf(
int __libc_fctprintf(
void (*out)(char character, void *arg),
void *arg,
const char *format,
...)
va_list va)
{
va_list va;
va_start(va, format);
const out_fct_wrap_type out_fct_wrap = {out, arg};
const int ret = _vsnprintf(
return _vsnprintf(
_out_fct,
(char *)(uintptr_t)&out_fct_wrap,
(size_t)-1,
format,
va);
va_end(va);
return ret;
}
Submodule
+1
Submodule lib/libfx added at 6b04920d29