bsd man page for puts

Query: puts

OS: bsd

Section: 3s

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PUTS(3S)																  PUTS(3S)

NAME
puts, fputs - put a string on a stream
SYNOPSIS
#include <stdio.h> puts(s) char *s; fputs(s, stream) char *s; FILE *stream;
DESCRIPTION
Puts copies the null-terminated string s to the standard output stream stdout and appends a newline character. Fputs copies the null-terminated string s to the named output stream. Neither routine copies the terminal null character.
SEE ALSO
fopen(3S), gets(3S), putc(3S), printf(3S), ferror(3S) fread(3S) for fwrite
BUGS
Puts appends a newline, fputs does not, all in the name of backward compatibility. 7th Edition May 15, 1985 PUTS(3S)
Related Man Pages
puts(3) - redhat
fputc(3) - debian
fputs(3) - debian
putchar(3) - centos
puts(3) - centos
Similar Topics in the Unix Linux Community
Checking the format of inputs in a file
read n number of inputs
Take 10 user inputs and output to file?
Storing user inputs into a file
[Solved] How to refer more than 9 command line inputs for a scripts in korn shell?