summaryrefslogtreecommitdiffstats
path: root/safe.h
blob: 21558bc0ad7dd73c5257e8260b5171390ed15e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ########################################################### */
/* This Software is licensed under the GPL licensed Version 2, */
/* please read http://www.gnu.org/copyleft/gpl.html            */
/* ########################################################### */

#ifndef SAFE_H
#define SAFE_H

int
fputs_safe(const char * restrict s, FILE * restrict stream);

int
fputc_safe(int c, FILE * stream);

int
tcsetattr_safe(int fildes, int optional_actions,
               const struct termios * termios_p);

FILE *
fopen_safe(const char * restrict stream, const char * restrict mode);

#endif