Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fputs(3S) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exit(2)

lseek(2)

write(2)

abort(3C)

fclose(3S)

ferror(3S)

fopen(3S)

fread(3S)

printf(3S)

putc(3S)

stdio(3S)



PUTS(3S-SVR4)       RISC/os Reference Manual        PUTS(3S-SVR4)



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.

SEE ALSO
     exit(2), lseek(2), write(2), abort(3C), fclose(3S),
     ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S),
     stdio(3S).

DIAGNOSTICS
     On success both routines return the number of characters
     written; otherwise they return EOF.

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
























                        Printed 11/19/92                   Page 1



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