Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fopen(3s)

gets(3s)

putc(3s)

printf(3s)

ferror(3s)

fread(3s)

puts(3s)

Name

puts, fputs − put a string on a stream

Syntax

#include <stdio.h>

puts(s)
char *s;

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

Description

The puts subroutine copies the null-terminated string s to the standard output stream stdout and appends a new line character. 

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

Neither routine copies the terminal null character. 

Restrictions

The puts subroutine appends a new line, while fputs does not.

See Also

fopen(3s), gets(3s), putc(3s), printf(3s), ferror(3s) fread(3s)

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