1*a38a92c9SIngo Weinhold #ifndef _FSSH_STDIO_H_ 2*a38a92c9SIngo Weinhold #define _FSSH_STDIO_H_ 3*a38a92c9SIngo Weinhold 4*a38a92c9SIngo Weinhold #include <stdarg.h> 5*a38a92c9SIngo Weinhold 6*a38a92c9SIngo Weinhold #include "fssh_defs.h" 7*a38a92c9SIngo Weinhold 8*a38a92c9SIngo Weinhold 9*a38a92c9SIngo Weinhold #ifdef FSSH_EOF 10*a38a92c9SIngo Weinhold # undef FSSH_EOF 11*a38a92c9SIngo Weinhold #endif 12*a38a92c9SIngo Weinhold #define FSSH_EOF -1 13*a38a92c9SIngo Weinhold 14*a38a92c9SIngo Weinhold 15*a38a92c9SIngo Weinhold #ifdef __cplusplus 16*a38a92c9SIngo Weinhold extern "C" { 17*a38a92c9SIngo Weinhold #endif 18*a38a92c9SIngo Weinhold 19*a38a92c9SIngo Weinhold /* file operations */ 20*a38a92c9SIngo Weinhold extern int fssh_remove(const char *name); 21*a38a92c9SIngo Weinhold extern int fssh_rename(const char *from, const char *to); 22*a38a92c9SIngo Weinhold 23*a38a92c9SIngo Weinhold /* formatted I/O */ 24*a38a92c9SIngo Weinhold extern int fssh_sprintf(char *string, char const *format, ...) 25*a38a92c9SIngo Weinhold __attribute__ ((format (__printf__, 2, 3))); 26*a38a92c9SIngo Weinhold extern int fssh_snprintf(char *string, fssh_size_t size, 27*a38a92c9SIngo Weinhold char const *format, ...) 28*a38a92c9SIngo Weinhold __attribute__ ((format (__printf__, 3, 4))); 29*a38a92c9SIngo Weinhold extern int fssh_vsprintf(char *string, char const *format, va_list ap); 30*a38a92c9SIngo Weinhold extern int fssh_vsnprintf(char *string, fssh_size_t size, 31*a38a92c9SIngo Weinhold char const *format, va_list ap); 32*a38a92c9SIngo Weinhold 33*a38a92c9SIngo Weinhold extern int fssh_sscanf(char const *str, char const *format, ...); 34*a38a92c9SIngo Weinhold extern int fssh_vsscanf(char const *str, char const *format, va_list ap); 35*a38a92c9SIngo Weinhold 36*a38a92c9SIngo Weinhold #ifdef __cplusplus 37*a38a92c9SIngo Weinhold } 38*a38a92c9SIngo Weinhold #endif 39*a38a92c9SIngo Weinhold 40*a38a92c9SIngo Weinhold #endif /* _FSSH_STDIO_H_ */ 41