1 /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
2 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
3 #include <crtdll/stdio.h>
4 #include <crtdll/internal/file.h>
7 int printf(const char *fmt
, ...)
13 len
= _doprnt(fmt
, a
, stdout
);
15 /* People were confused when printf() didn't flush stdout,
16 so we'll do it to reduce confusion */
17 if (stdout
->_flag
& _IOLBF
)
20 return ferror(stdout
) ? EOF
: len
;