SysTutorials

Man Pages › Section 3

puts(3)

fputc, fputs, putc, putchar, puts – output of characters and strings

Synopsis

#include <stdio.h>

int fputc(int c, FILE *stream);

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

int putc(int c, FILE *stream);

int putchar(int c);

int puts(const char *s);

Description

fputc() writes the character c, cast to an unsigned char, to stream.

fputs() writes the string s to stream, without its terminating null byte (‘