/contrib/ntp/libntp/lib_strbuf.c
https://bitbucket.org/freebsd/freebsd-head/ · C · 23 lines · 11 code · 3 blank · 9 comment · 0 complexity · a1d7374825db9d7693af28e0552ec7a9 MD5 · raw file
- /*
- * lib_strbuf - library string storage
- */
- #include "ntp_stdlib.h"
- #include "lib_strbuf.h"
- /*
- * Storage declarations
- */
- char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
- int lib_nextbuf;
- int lib_inited = 0;
- /*
- * initialization routine. Might be needed if the code is ROMized.
- */
- void
- init_lib(void)
- {
- lib_nextbuf = 0;
- lib_inited = 1;
- }