xref: /freebsd/contrib/ntp/libntp/lib_strbuf.c (revision 7aa383846770374466b1dcb2cefd71bde9acf463)
1 /*
2  * lib_strbuf - library string storage
3  */
4 
5 #include "ntp_stdlib.h"
6 #include "lib_strbuf.h"
7 
8 /*
9  * Storage declarations
10  */
11 char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
12 int lib_nextbuf;
13 int lib_inited = 0;
14 
15 /*
16  * initialization routine.  Might be needed if the code is ROMized.
17  */
18 void
19 init_lib(void)
20 {
21 	lib_nextbuf = 0;
22 	lib_inited = 1;
23 }
24