2 * lib_strbuf.h - definitions for routines which use the common string buffers
10 #define LIB_NUMBUFS 200
11 #define LIB_BUFLENGTH 80
14 * Macro to get a pointer to the next buffer
16 #define LIB_GETBUF(buf) \
20 buf = &lib_stringbuf[lib_nextbuf][0]; \
21 if (++lib_nextbuf >= LIB_NUMBUFS) \
23 memset(buf, 0, LIB_BUFLENGTH); \
26 extern char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
27 extern int lib_nextbuf;
28 extern int lib_inited;