Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fputs(3S) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ferror(3S)

fopen(3S)

fread(3S)

printf(3S)

putc(3S)




puts(3S) puts(3S)
NAME puts, fputs - put a string on a stream SYNOPSIS #include <stdio.h> int puts(s) char *s; int fputs(s, stream) char *s; FILE *stream; DESCRIPTION puts writes the null-terminated string referenced by s, followed by a newline character, to the standard output stream stdout. fputs writes the null-terminated string pointed to by s to the named output stream. Neither function writes the terminating null character. STATUS MESSAGES AND VALUES On success, both routines return the number of characters written. Both functions return EOF on error. This occurs if the routines try to write on a file that has not been opened for writing. NOTES The puts program appends a newline character while fputs does not. SEE ALSO ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S) January 1992 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026