New function(s): strnmatch() and strmatch()

These two functions look for a string in a (terminate) list of strings
and returns the index to that string, or -1 if not found or error.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-06-29 18:38:56 +02:00
1 parent 9d63302337
commit b6a9ed3c6d
3 files changed
+93

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ libite_la_SOURCES = chomp.c copyfile.c \
reallocarray.c rsync.c \
strlcpy.c strlcat.c strtonum.c \
strdupa.h strndupa.h strnlen.h \
strmatch.c \
tempfile.c which.c \
lite.h strlite.h \
queue.h tree.h