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:
Diffstat (limited to 'newlib/libc/stdio/asprintf.c')
-rw-r--r--newlib/libc/stdio/asprintf.c31
1 files changed, 18 insertions, 13 deletions
diff --git a/newlib/libc/stdio/asprintf.c b/newlib/libc/stdio/asprintf.c
index 1d7dd4bae..928e8497a 100644
--- a/newlib/libc/stdio/asprintf.c
+++ b/newlib/libc/stdio/asprintf.c
@@ -14,9 +14,10 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-
/* This code was copied from sprintf.c */
+#include <_ansi.h>
+#include <reent.h>
#include <stdio.h>
#ifdef _HAVE_STDC
#include <stdarg.h>
@@ -24,18 +25,20 @@
#include <varargs.h>
#endif
#include <limits.h>
-#include <_ansi.h>
#include "local.h"
int
#ifdef _HAVE_STDC
-_DEFUN (_asprintf_r, (ptr, strp, fmt), struct _reent *ptr _AND char **strp _AND _CONST char *fmt _DOTS)
+_DEFUN(_asprintf_r, (ptr, strp, fmt),
+ struct _reent *ptr _AND
+ char **strp _AND
+ _CONST char *fmt _DOTS)
#else
-_asprintf_r (ptr, strp, fmt, va_alist)
- struct _reent *ptr;
- char **strp;
- _CONST char *fmt;
- va_dcl
+_asprintf_r(ptr, strp, fmt, va_alist)
+ struct _reent *ptr;
+ char **strp;
+ _CONST char *fmt;
+ va_dcl
#endif
{
int ret;
@@ -63,12 +66,14 @@ _asprintf_r (ptr, strp, fmt, va_alist)
int
#ifdef _HAVE_STDC
-_DEFUN (asprintf, (strp, fmt), char **strp _AND _CONST char *fmt _DOTS)
+_DEFUN(asprintf, (strp, fmt),
+ char **strp _AND
+ _CONST char *fmt _DOTS)
#else
-asprintf (strp, fmt, va_alist)
- char **strp;
- _CONST char *fmt;
- va_dcl
+asprintf(strp, fmt, va_alist)
+ char **strp;
+ _CONST char *fmt;
+ va_dcl
#endif
{
int ret;