Guardian C Library Calls Reference Manual

puts
3-146 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
puts
The puts function writes a string to the standard output file.
str_ptr
points to an array of characters.
Return Value
is zero if the call is successful. Otherwise, a nonzero value is returned.
Usage Guidelines
The puts function writes characters from the string to the standard output file until it
encounters a null character. The function does not write the null character, but it
does write a newline character.
Example
This example writes “Hello” to the standard output file:
#include <stdioh>
int status;
char *sp;
sp = "Hello";
status = puts(sp);
#include <stdioh>
int puts(const char *str_ptr);