| 17 |
#ifndef _IO_H_ |
#ifndef _IO_H_ |
| 18 |
#define _IO_H_ |
#define _IO_H_ |
| 19 |
|
|
| 20 |
|
#include <iconv.h> |
| 21 |
#include <stdio.h> |
#include <stdio.h> |
| 22 |
|
|
| 23 |
#define CR '\r' |
#define CR '\r' |
| 99 |
#define DOECHO (1) |
#define DOECHO (1) |
| 100 |
#define NOECHO (0) |
#define NOECHO (0) |
| 101 |
|
|
| 102 |
extern int prints(const char *format, ...); |
#define BBS_DEFAULT_CHARSET "UTF-8" |
| 103 |
|
|
| 104 |
extern int outc(char c); |
extern char stdio_charset[20]; |
| 105 |
|
|
| 106 |
|
extern int prints(const char *format, ...); |
| 107 |
|
extern int outc(char c); |
| 108 |
extern int iflush(void); |
extern int iflush(void); |
| 109 |
|
|
| 110 |
extern int igetch(int timeout); |
extern int igetch(int timeout); |
|
|
|
| 111 |
extern int igetch_t(int sec); |
extern int igetch_t(int sec); |
|
|
|
| 112 |
extern void igetch_reset(void); |
extern void igetch_reset(void); |
| 113 |
|
|
| 114 |
|
extern int io_buf_conv(iconv_t cd, char *p_buf, int *p_buf_len, int *p_buf_offset, char *p_conv, size_t conv_size, int *p_conv_len); |
| 115 |
|
extern int io_conv_init(const char *charset); |
| 116 |
|
extern int io_conv_cleanup(void); |
| 117 |
|
|
| 118 |
#endif //_IO_H_ |
#endif //_IO_H_ |