commit 3dfb21a9b25123a0f525c4bfb81630980717fff0
parent 0b7a31c923fc0d2d80378a3b8a4fe14282b97568
Author: rpa <rpa@grass>
Date: Mon, 30 Oct 2023 20:05:33 +0000
src/util: move utils from wdb
Diffstat:
4 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/util/mkfile b/src/util/mkfile
@@ -4,6 +4,7 @@ LIB=libutil.a$O
OFILES=\
slice.$O\
+ util.$O\
HFILES=\
util.h\
diff --git a/src/wdb/util.c b/src/util/util.c
diff --git a/src/util/util.h b/src/util/util.h
@@ -34,3 +34,6 @@ Slice * slicecopy(Slice *);
Slice * slicejoin(Slice *, Slice *);
void *slicegetp(Slice *, int);
void freeslice(Slice *);
+
+long voidlen(void **); /* strlen, but for array of pointers */
+char ** strfind(char **, long n, char *); /* find string in array of strings */
+\ No newline at end of file
diff --git a/src/wdb/util.h b/src/wdb/util.h
@@ -1,2 +0,0 @@
-long voidlen(void **); /* strlen, but for array of pointers */
-char ** strfind(char **, long n, char *); /* find string in array of strings */