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