Init. variables before calling get_cursor_position
[smenu.git] / safe.h
blobd54a101f6a1668baef543341f4095792bdb06924
1 /* ################################################################### */
2 /* Copyright 2015, Pierre Gentile (p.gen.progs@gmail.com) */
3 /* */
4 /* This Source Code Form is subject to the terms of the Mozilla Public */
5 /* License, v. 2.0. If a copy of the MPL was not distributed with this */
6 /* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
7 /* ################################################################### */
9 #ifndef SAFE_H
10 #define SAFE_H
12 int
13 fputs_safe(const char * restrict s, FILE * restrict stream);
15 int
16 fputc_safe(int c, FILE *stream);
18 int
19 tcsetattr_safe(int fildes,
20 int optional_actions,
21 const struct termios *termios_p);
23 FILE *
24 fopen_safe(const char * restrict stream, const char * restrict mode);
26 #endif