]> sourceware.org Git - glibc.git/blobdiff - stdio-common/printf.c
* Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
[glibc.git] / stdio-common / printf.c
similarity index 80%
rename from stdio/printf.c
rename to stdio-common/printf.c
index 9cdae768aeffc37aae5999db3d0013d67811ac0f..d8aa895a770d45476ba4116f51cb27e10265b27e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -16,22 +16,25 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
-#include <ansidecl.h>
 #include <stdarg.h>
 #include <stdio.h>
 
+#ifdef USE_IN_LIBIO
+# define vprintf _IO_vprintf
+#endif
 
 /* Write formatted output to stdout from the format string FORMAT.  */
 /* VARARGS1 */
 int
-DEFUN(printf, (format), CONST char *format DOTS)
+printf (format)
+     const char *format;
 {
   va_list arg;
   int done;
 
-  va_start(arg, format);
-  done = vprintf(format, arg);
-  va_end(arg);
+  va_start (arg, format);
+  done = vprintf (format, arg);
+  va_end (arg);
 
   return done;
 }
This page took 0.028564 seconds and 5 git commands to generate.