(C) 1998 AROS - The Amiga Research OS


NAME
#include <stdio.h>

int puts ()

SYNOPSIS
const char * str

FUNCTION
Print a string to stdout. A newline ('\n') is emmitted after the string.

INPUTS
str
Print this string

RESULT
> 0 on success and EOF on error. On error, the reason is put in errno.

EXAMPLE
#include <errno.h>

if (puts ("Hello World.") != EOF)
    fprintf (stderr, "Success");
else
    fprintf (stderr, "Failure: errno=%d", errno);
SEE ALSO
fputs(), printf(), fprintf(), putc(), fputc()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.01.1997 digulla
puts() write to stdout, not to a specified stream.
11.12.1996 aros
Added/corrected headers
10.12.1996 aros
New functions