|
@@ -147,8 +147,7 @@ static void putc_outstr(char ch)
|
|
|
*outstr++ = ch;
|
|
|
}
|
|
|
|
|
|
-/* Note that size is ignored */
|
|
|
-int snprintf(char *buf, size_t size, const char *fmt, ...)
|
|
|
+int sprintf(char *buf, const char *fmt, ...)
|
|
|
{
|
|
|
va_list va;
|
|
|
int ret;
|
|
@@ -161,3 +160,16 @@ int snprintf(char *buf, size_t size, const char *fmt, ...)
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
+
|
|
|
+/* Note that size is ignored */
|
|
|
+int snprintf(char *buf, size_t size, const char *fmt, ...)
|
|
|
+{
|
|
|
+ va_list va;
|
|
|
+ int ret;
|
|
|
+
|
|
|
+ va_start(va, fmt);
|
|
|
+ ret = sprintf(buf, fmt, va);
|
|
|
+ va_end(va);
|
|
|
+
|
|
|
+ return ret;
|
|
|
+}
|