aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index f3396d0d..1081a159 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -66,6 +66,9 @@
#define ARRAY_SIZE(arr) (sizeof (arr) / sizeof (arr[0]))
+#define STRNCMP_LITERAL(var, literal) \
+ strncmp ((var), (literal), sizeof (literal) - 1)
+
typedef int (*command_function_t) (void *ctx, int argc, char *argv[]);
typedef struct command {