summaryrefslogtreecommitdiff
path: root/libntp/lib_strbuf.c
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2008-08-17 17:37:33 +0000
committerOllivier Robert <roberto@FreeBSD.org>2008-08-17 17:37:33 +0000
commitcce65f439697627afbccf5a67035a957bb4d784a (patch)
tree16d100fbc9dae63888d48b464e471ba0e5065193 /libntp/lib_strbuf.c
parent8c24a1e0ffd629427f94da1b681600008030c41a (diff)
Notes
Diffstat (limited to 'libntp/lib_strbuf.c')
-rw-r--r--libntp/lib_strbuf.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/libntp/lib_strbuf.c b/libntp/lib_strbuf.c
new file mode 100644
index 000000000000..315070f3a943
--- /dev/null
+++ b/libntp/lib_strbuf.c
@@ -0,0 +1,23 @@
+/*
+ * 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;
+}