aboutsummaryrefslogtreecommitdiff
path: root/libntp/lib_strbuf.c
diff options
context:
space:
mode:
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;
+}