aboutsummaryrefslogtreecommitdiffstats
path: root/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/printf.c b/printf.c
index dec4555..01021a0 100644
--- a/printf.c
+++ b/printf.c
@@ -77,10 +77,10 @@
typedef void (*out_fct_type)(char character, char* buffer, size_t idx, size_t maxlen);
-// wrapper used as buffer
+// wrapper (used as buffer) for output function type
typedef struct {
- void (*fct)(char character, void* user);
- void* user;
+ void (*fct)(char character, void* arg);
+ void* arg;
} out_fct_wrap_type;
@@ -696,11 +696,11 @@ int vsnprintf(char* buffer, size_t count, const char* format, va_list va)
}
-int fctprintf(void (*out)(char character, void* user), void* user, const char* format, ...)
+int fctprintf(void (*out)(char character, void* arg), void* arg, const char* format, ...)
{
va_list va;
va_start(va, format);
- const out_fct_wrap_type out_fct_wrap = { out, user };
+ const out_fct_wrap_type out_fct_wrap = { out, arg };
const int ret = _vsnprintf(_out_fct, (char*)&out_fct_wrap, (size_t)-1, format, va);
va_end(va);
return ret;