summaryrefslogtreecommitdiffstats
path: root/safe.h
blob: 472a7c9f33f1bdd90f1daf5db0cc94834817559c (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