Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ puts(3S) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



PUTS(3S)        DOMAIN/IX Reference Manual (SYS5)        PUTS(3S)



NAME
     puts, fputs - put a string on a stream

USAGE
     #include <stdio.h>

     int puts (s)
     char *s;

     int fputs (s, stream)
     char *s;
     FILE *stream;

DESCRIPTION
     Puts writes the null-terminated string pointed to by s, fol-
     lowed by a new-line character, onto 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.

NOTES
     Puts appends a new-line character; fputs does not.

DIAGNOSTICS
     Both routines return EOF on error.  Error occurs if the rou-
     tines try to write on a file that has not been opened for
     writing.

RELATED INFORMATION
     ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S)






















Printed 5/10/85                                            PUTS-1



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