summaryrefslogtreecommitdiff
path: root/src/basic/string-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-13 19:45:05 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-13 20:22:32 +0100
commitc174983474d4a010a18e3bb9a59e351a442480f5 (patch)
tree3501d667abb9ec0015c9cf449c10608acef36d60 /src/basic/string-util.h
parent3095011d15e03a5d724fa0141463434c8bf8380c (diff)
basic: add ascii_strcasecmp_nn() call
In contrast to ascii_strcasecmp_nn() it takes two character buffers with their individual length. It will then compare the buffers up the smaller size of the two buffers, and finally the length themselves.
Diffstat (limited to 'src/basic/string-util.h')
-rw-r--r--src/basic/string-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/string-util.h b/src/basic/string-util.h
index 6374e11119..8ea18f45aa 100644
--- a/src/basic/string-util.h
+++ b/src/basic/string-util.h
@@ -135,6 +135,7 @@ char *ascii_strlower(char *s);
char *ascii_strlower_n(char *s, size_t n);
int ascii_strcasecmp_n(const char *a, const char *b, size_t n);
+int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m);
bool chars_intersect(const char *a, const char *b) _pure_;