mirror of
https://github.com/troglobit/libite.git
synced 2026-10-27 12:11:06 +00:00
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:
1 parent
9d63302337
commit
b6a9ed3c6d
3 files changed
+93
No files matched your search
@@ -49,6 +49,9 @@
|
||||
})
|
||||
#endif
|
||||
|
||||
int strnmatch (const char *str, const char **list, size_t num);
|
||||
int strmatch (const char *str, const char **list);
|
||||
|
||||
#ifndef strlcpy
|
||||
size_t strlcpy (char *dst, const char *src, size_t siz);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user