2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <libraries/posixc.h>
10 /*****************************************************************************
21 Print a string to stdout. A newline ('\n') is emmitted after the
25 str - Print this string
28 > 0 on success and EOF on error. On error, the reason is put in
36 if (puts ("Hello World.") != EOF)
37 fprintf (stderr, "Success");
39 fprintf (stderr, "Failure: errno=%d", errno);
44 fputs(), printf(), fprintf(), putc(), fputc()
48 ******************************************************************************/
50 struct PosixCBase
*PosixCBase
= __aros_getbase_PosixCBase();
54 fputs (str
, PosixCBase
->_stdout
) == EOF
||
55 fputs ("\n", PosixCBase
->_stdout
) == EOF
||
56 fflush (PosixCBase
->_stdout
) == EOF