Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-04-25 02:09:21 +0400
committerJeff Johnston <jjohnstn@redhat.com>2001-04-25 02:09:21 +0400
commita874cd21de8bb73cb87321e3ec4a90462ff23213 (patch)
tree6d01776ffa4fa497de309c21213fde2c78c83f15 /newlib/libc/stdio/vsprintf.c
parentb7cf6a2f5b7ba5236d5c105029d37f74b9a463a6 (diff)
2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
* libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN * libc/stdio/vprintf.c (_vprintf_r): new function * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use _DEFUN, and call _vfprintf_r, not vfprintf. * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use _DEFUN, and call _vfprintf_r, not vfprintf.
Diffstat (limited to 'newlib/libc/stdio/vsprintf.c')
-rw-r--r--newlib/libc/stdio/vsprintf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/newlib/libc/stdio/vsprintf.c b/newlib/libc/stdio/vsprintf.c
index 416c184e8..b440ac506 100644
--- a/newlib/libc/stdio/vsprintf.c
+++ b/newlib/libc/stdio/vsprintf.c
@@ -32,10 +32,10 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#endif
int
-vsprintf (str, fmt, ap)
- char *str;
- char _CONST *fmt;
- va_list ap;
+_DEFUN (vsprintf, (str, fmt, ap),
+ char *str _AND
+ _CONST char *fmt _AND
+ va_list ap)
{
int ret;
FILE f;
@@ -50,11 +50,11 @@ vsprintf (str, fmt, ap)
}
int
-vsprintf_r (ptr, str, fmt, ap)
- struct _reent *ptr;
- char *str;
- char _CONST *fmt;
- va_list ap;
+_DEFUN (_vsprintf_r, (ptr, str, fmt, ap),
+ struct _reent *ptr _AND
+ char *str _AND
+ _CONST char *fmt _AND
+ va_list ap)
{
int ret;
FILE f;
@@ -63,7 +63,7 @@ vsprintf_r (ptr, str, fmt, ap)
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
f._data = ptr;
- ret = vfprintf (&f, fmt, ap);
+ ret = _vfprintf_r (ptr, &f, fmt, ap);
*f._p = 0;
return ret;
}