You can use the following library functions to write to a terminal
file; see
z/OS XL C/C++ Runtime Library Reference for more information on these library
functions.
- fwrite()
- fwrite_unlocked()
- printf()
- printf_unlocked()
- fprintf()
- fprintf_unlocked()
- vprintf()
- vprintf_unlocked()
- vfprintf()
- vfprintf_unlocked()
- puts()
- puts_unlocked()
- fputs()
- fputs_unlocked()
- fputc()
- fputc_unlocked()
- putc()
- putc_unlocked()
- putchar()
- purchar_unlocked()
If no record length is specified for the output terminal file,
it defaults to the virtual line size of the terminal.
On output, records are written one line at a time up to the record
length. For all output terminal files, records are not truncated.
If you are printing a long string, it wraps around to another line.