Commit | Line | Data |
---|---|---|
6c8ba8e3 KB |
1 | /* |
2 | * Copyright (c) 1987 Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
019bea33 | 5 | * %sccs.include.redist.c% |
6c8ba8e3 KB |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
019bea33 | 9 | static char sccsid[] = "@(#)printf.c 5.5 (Berkeley) %G%"; |
6c8ba8e3 | 10 | #endif /* LIBC_SCCS and not lint */ |
b8f253e8 | 11 | |
6c8ba8e3 | 12 | #include <stdio.h> |
842c3449 BJ |
13 | |
14 | printf(fmt, args) | |
6c8ba8e3 KB |
15 | char *fmt; |
16 | int args; | |
842c3449 | 17 | { |
6c8ba8e3 KB |
18 | int len; |
19 | ||
20 | len = _doprnt(fmt, &args, stdout); | |
21 | return(ferror(stdout) ? EOF : len); | |
842c3449 | 22 | } |