diff options
Diffstat (limited to 'newlib/libc/stdio/vsnprintf.c')
-rw-r--r-- | newlib/libc/stdio/vsnprintf.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/newlib/libc/stdio/vsnprintf.c b/newlib/libc/stdio/vsnprintf.c index 5ca0ff27b..4e9c283bb 100644 --- a/newlib/libc/stdio/vsnprintf.c +++ b/newlib/libc/stdio/vsnprintf.c @@ -34,11 +34,11 @@ static char sccsid[] = "%W% (Berkeley) %G%"; #endif int -vsnprintf (str, size, fmt, ap) - char *str; - size_t size; - char _CONST *fmt; - va_list ap; +_DEFUN (vsnprintf, (str, size, fmt, ap), + char *str _AND + size_t size _AND + _CONST char *fmt _AND + va_list ap) { int ret; FILE f; @@ -54,12 +54,12 @@ vsnprintf (str, size, fmt, ap) } int -vsnprintf_r (ptr, str, size, fmt, ap) - struct _reent *ptr; - char *str; - size_t size; - char _CONST *fmt; - va_list ap; +_DEFUN (_vsnprintf_r, (ptr, str, size, fmt, ap), + struct _reent *ptr _AND + char *str _AND + size_t size _AND + _CONST char *fmt _AND + va_list ap) { int ret; FILE f; @@ -68,7 +68,7 @@ vsnprintf_r (ptr, str, size, fmt, ap) f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = (size > 0 ? size - 1 : 0); f._data = ptr; - ret = vfprintf (&f, fmt, ap); + ret = _vfprintf_r (ptr, &f, fmt, ap); if (size > 0) *f._p = 0; return ret; |