summaryrefslogtreecommitdiff
path: root/src/win32/posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/posix.c')
-rw-r--r--src/win32/posix.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/win32/posix.c b/src/win32/posix.c
index 1ce3f050c..0e9d3f0f4 100644
--- a/src/win32/posix.c
+++ b/src/win32/posix.c
@@ -218,3 +218,15 @@ int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
return vsnprintf(buffer, count, format, argptr);
#endif
}
+
+int p_snprintf(char *buffer, size_t count, const char *format, ...)
+{
+ va_list va;
+ int r;
+
+ va_start(va, format);
+ r = p_vsnprintf(buffer, count, format, va);
+ va_end(va);
+
+ return r;
+}