Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ puts(S) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     PUTS(S)                   UNIX System V                   PUTS(S)



     Name
          puts, fputs - put a string on a stream

     Syntax
          #include <stdio.h>

          int puts (s)
          char *s;

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

     Description
          The puts function writes the null-terminated string pointed
          to by s, followed by a new-line 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.

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

     Diagnostics
          Both routines return EOF on error. This will happen if the
          routines try to write on a file that has not been opened for
          writing.

     Notes
          The puts function appends a new-line character while fputs
          does not.

     Standards Conformance
          fputs and puts are conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          The X/Open Portability Guide II of January 1987;
          ANSI X3.159-198X C Language Draft Standard, May 13,
          1988;
          IEEE POSIX Std 1003.1-1988 with C Standard Language-
          Dependent System Support;
          and NIST FIPS 151-1.


                                             (printed 6/20/89)



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