Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ puts(S) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ferror(S)

fopen(S)

fread(S)

gets(S)

printf(S)

putc(S)



     PUTS(S)                  XENIX System V                   PUTS(S)



     Name
          puts, fputs - Puts a string on a stream.

     Syntax
          #include <stdio.h>

          int puts (s)
          char *s;

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

     Description
          puts copies the null-terminated string s to the standard
          output stream stdout and appends a newline character.

          fputs copies the null-terminated string s to the named
          output stream.

          Neither routine copies the terminating null character.

     Diagnostics
          Both routines return EOF on error.

     See Also
          ferror(S), fopen(S), fread(S), gets(S), printf(S), putc(S)

     Notes
          puts appends a newline, fputs does not.

























     Page 1                                           (printed 8/7/87)



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