SysTutorials

Man Pages › Section 3

fputs(3)

NAME

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 (‘