PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 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 */
11char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
12int lib_nextbuf;
13int lib_inited = 0;
14
15/*
16 * initialization routine.  Might be needed if the code is ROMized.
17 */
18void
19init_lib(void)
20{
21	lib_nextbuf = 0;
22	lib_inited = 1;
23}