bf  0.1.0
buffered formatted input/output
bf.h
Go to the documentation of this file.
1 #ifndef _BF_H_
2 #define _BF_H_ 1
3 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
13 extern int bfhi();
14 
16 extern void bfcs();
18 extern void bffs();
19 
21 extern int bfch();
23 extern int bfer();
24 
26 extern int bfo(int nbuf, const char *fmt, ...);
28 extern int bfoa(int nbuf, const char *fmt, ...);
29 
31 extern int bfi(int nbuf, const char *fmt, ...);
33 extern int bfia(int nbuf, const char *fmt, ...);
34 
36 extern char *bfb(int nbuf);
38 extern int bfre(int nbuf);
39 
41 extern int bfas(int as);
42 
44 extern int bfu8(int u8);
45 
47 extern int bfbi();
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif // _BF_H_
int bfu8(int u8)
Encode/Decode UTF-8 characters.
Definition: bf.c:201
char * bfb(int nbuf)
Buffer string.
Definition: bf.c:168
void bffs()
Fill screen.
Definition: bf.c:48
int bfo(int nbuf, const char *fmt,...)
Output.
Definition: bf.c:59
int bfhi()
Hi - initialize bf library.
Definition: bf.c:26
void bfcs()
Clear screen.
Definition: bf.c:46
int bfer()
Error.
Definition: bf.c:178
int bfi(int nbuf, const char *fmt,...)
Input.
Definition: bf.c:142
int bfbi()
Bye - terminate bf library.
Definition: bf.c:180
int bfre(int nbuf)
Buffer free to reuse.
Definition: bf.c:170
int bfoa(int nbuf, const char *fmt,...)
Output always.
Definition: bf.c:72
int bfas(int as)
Non-bloking input.
Definition: bf.c:187
int bfia(int nbuf, const char *fmt,...)
Input always.
Definition: bf.c:156
int bfch()
Character.
Definition: bf.c:176