1 /* $NetBSD: lib_strbuf.h,v 1.2 2003/12/04 16:23:36 drochner Exp $ */
4 * lib_strbuf.h - definitions for routines which use the common string buffers
12 #define LIB_NUMBUFS 200
13 #define LIB_BUFLENGTH 80
16 * Macro to get a pointer to the next buffer
18 #define LIB_GETBUF(buf) \
22 buf = &lib_stringbuf[lib_nextbuf][0]; \
23 if (++lib_nextbuf >= LIB_NUMBUFS) \
25 memset(buf, 0, LIB_BUFLENGTH); \
28 extern char lib_stringbuf
[LIB_NUMBUFS
][LIB_BUFLENGTH
];
29 extern int lib_nextbuf
;
30 extern int lib_inited
;