Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fputs(3S) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought



puts(3S)                       DG/UX R4.11MU05                      puts(3S)


NAME
       puts, fputs - put a string on a stream

SYNOPSIS
       #include <stdio.h>
       int puts (const char *s);
       int fputs (const char *s, FILE *stream);

DESCRIPTION
       puts writes the string pointed to by s, followed by a new-line
       character, to the standard output stream stdout [see intro(3)].

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

       Neither function writes the terminating null character.

   Errors
       On success both routines return the number of characters written;
       otherwise they return EOF.  In addition, if the routines try to write
       to a file that has not been opened for writing, errno will be set to
       EBADF.

   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |fputs    |     Y         Y        N    |
                     |puts     |     Y         Y        N    |
                     +---------+-----------------------------+
REFERENCES
       exit(2), lseek(2), write(2), reentrant(3), abort(3C), fclose(3S),
       ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S), stdio(3S)

NOTICES
       puts appends a new-line character while fputs does not.


Licensed material--property of copyright holder(s)

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