libc: rename fctprintf to __libc_fctprintf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user