1*34470Sbostic /* 2*34470Sbostic * Copyright (c) 1988 Regents of the University of California. 3*34470Sbostic * All rights reserved. 4*34470Sbostic * 5*34470Sbostic * Redistribution and use in source and binary forms are permitted 6*34470Sbostic * provided that this notice is preserved and that due credit is given 7*34470Sbostic * to the University of California at Berkeley. The name of the University 8*34470Sbostic * may not be used to endorse or promote products derived from this 9*34470Sbostic * software without specific prior written permission. This software 10*34470Sbostic * is provided ``as is'' without express or implied warranty. 11*34470Sbostic */ 12*34470Sbostic 13*34470Sbostic #if defined(LIBC_SCCS) && !defined(lint) 14*34470Sbostic static char sccsid[] = "@(#)vprintf.c 5.1 (Berkeley) 05/24/88"; 15*34470Sbostic #endif /* LIBC_SCCS and not lint */ 16*34470Sbostic 17*34470Sbostic #include <stdio.h> 18*34470Sbostic #include <varargs.h> 19*34470Sbostic 20*34470Sbostic int 21*34470Sbostic vprintf(fmt, ap) 22*34470Sbostic char *fmt; 23*34470Sbostic va_list ap; 24*34470Sbostic { 25*34470Sbostic int len; 26*34470Sbostic 27*34470Sbostic len = _doprnt(fmt, ap, stdout); 28*34470Sbostic return (ferror(stdout) ? EOF : len); 29*34470Sbostic } 30