Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ puts(3s) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ferror(3S)

fopen(3S)

fread(3S)

printf(3S)

putc(3S)

stdio(3S)



     puts(3s)                   DG/UX 4.30                    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
          The puts routine writes the null-terminated string pointed
          to by s, followed by a new-line character, to the standard
          output stream stdout.

          The fputs routine writes the null-terminated string pointed
          to by s to the named output stream.

          Neither function writes the terminating null character.

          On normal termination, the routines return a non-negative
          number indicating the number of bytes written to the stream
          (other implementations may differ).

     SEE ALSO
          ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S),
          stdio(3S).

     DIAGNOSTICS
          Both routines return EOF on error.  In addition, if the
          routines try to write to a file that has not been opened for
          writing, errno will be set to EBADF.

     NOTES
          The puts routine appends a new-line character while fputs
          does not.
















     Licensed material--property of copyright holder(s)         Page 1



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