NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | NOTES | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libc.a #include <stdio.h>int puts(const char * s);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The puts() function writes the null-terminated string pointed to by s , followed by a new-line character, to the standard output stream stdout .
The fputs() function writes the null-terminated string pointed to by s to the named output stream .
Neither function writes the terminating null character.
On success, both routines return the number of characters written.
Both routines return EOF on error. This will happen if the routines try to write to a file that has not been opened for writing.
The puts() function appends a new-line character while fputs() does not.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | NOTES | ATTRIBUTES | SEE ALSO