date and time created 88/05/24 18:59:04 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 25 May 1988 09:59:04 +0000 (01:59 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 25 May 1988 09:59:04 +0000 (01:59 -0800)
SCCS-vsn: lib/libc/stdio/vprintf.c 5.1

usr/src/lib/libc/stdio/vprintf.c [new file with mode: 0644]

diff --git a/usr/src/lib/libc/stdio/vprintf.c b/usr/src/lib/libc/stdio/vprintf.c
new file mode 100644 (file)
index 0000000..9da0e16
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of California at Berkeley. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)vprintf.c  5.1 (Berkeley) %G%";
+#endif /* LIBC_SCCS and not lint */
+
+#include <stdio.h>
+#include <varargs.h>
+
+int
+vprintf(fmt, ap)
+       char *fmt;
+       va_list ap;
+{
+       int len;
+
+       len = _doprnt(fmt, ap, stdout);
+       return (ferror(stdout) ? EOF : len);
+}