Download pSOSystem System Calls

Transcript
pREPC+ System Calls
puts
puts
Writes a string to a stream.
#include <stdarg.h>
#include <stdio.h>
int puts(
const char *s
/* string */
)
3
Description
The puts() function writes a string to the standard output stream, and appends a
new-line character to the output. The terminating null character is not written.
Arguments
Points to the string to write.
s
Return Value
The puts() function returns 0 if the operation is successful and EOF if the
operation fails. If an error occurs, the stream’s error indicator and errno are set.
Error Codes
Refer to Appendix B.
Notes
Callable From
■
Task
See Also
gets, fputs
pSOSystem System Calls
3-119