man.bsd.lv manual page server

Manual Page Search Parameters
PUTS(3S) PUTS(3S)

puts, fputs - put a string on a stream

#include <stdio.h>

puts(s)
char *s;

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

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.

fopen(3), gets(3), putc(3), printf(3), ferror(3)
fread(3) for fwrite

Puts appends a newline, fputs does not, all in the name of backward compatibility.

UNIX-7