62 |
* This macro is used for static string buffer which is suitable for |
* This macro is used for static string buffer which is suitable for |
63 |
* work area and(or) return value of function. The area allocated once |
* work area and(or) return value of function. The area allocated once |
64 |
* is repeatedly used though the area is never released. |
* is repeatedly used though the area is never released. |
65 |
* You must call strbuf_init(sb) every time before using. |
* You must call strbuf_clear(sb) every time before using. |
66 |
* You must not call strbuf_close(sb) for it. |
* You must not call strbuf_close(sb) for it. |
67 |
* |
* |
68 |
* Usage: |
* Usage: |
69 |
* function(...) { |
* function(...) { |
70 |
* STATIC_STRBUF(sb); |
* STATIC_STRBUF(sb); |
71 |
* |
* |
72 |
* strbuf_init(sb); |
* strbuf_clear(sb); |
73 |
* ... |
* ... |
74 |
* strbuf_puts(sb, "xxxxx"); |
* strbuf_puts(sb, "xxxxx"); |
75 |
* ... |
* ... |
113 |
#endif |
#endif |
114 |
void __strbuf_expandbuf(STRBUF *, int); |
void __strbuf_expandbuf(STRBUF *, int); |
115 |
STRBUF *strbuf_open(int); |
STRBUF *strbuf_open(int); |
116 |
void strbuf_init(STRBUF *); |
void strbuf_clear(STRBUF *); |
117 |
void strbuf_nputs(STRBUF *, const char *, int); |
void strbuf_nputs(STRBUF *, const char *, int); |
118 |
void strbuf_puts(STRBUF *, const char *); |
void strbuf_puts(STRBUF *, const char *); |
119 |
void strbuf_putn(STRBUF *, int); |
void strbuf_putn(STRBUF *, int); |