132991Sbostic /* 232991Sbostic * Copyright (c) 1987 Regents of the University of California. 332991Sbostic * All rights reserved. 432991Sbostic * 5*42633Sbostic * %sccs.include.redist.c% 632991Sbostic */ 732991Sbostic 826657Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*42633Sbostic static char sccsid[] = "@(#)printf.c 5.5 (Berkeley) 06/01/90"; 1032991Sbostic #endif /* LIBC_SCCS and not lint */ 1122139Smckusick 1232991Sbostic #include <stdio.h> 132025Swnj 142025Swnj printf(fmt, args) 1532991Sbostic char *fmt; 1632991Sbostic int args; 172025Swnj { 1832991Sbostic int len; 1932991Sbostic 2032991Sbostic len = _doprnt(fmt, &args, stdout); 2132991Sbostic return(ferror(stdout) ? EOF : len); 222025Swnj } 23