chiark / gitweb /
util: introduce streq_ptr() for comparing strings or their pointers
[elogind.git] / util.h
diff --git a/util.h b/util.h
index 30a0616d542060d8c98aa3028c0eab95a914d727..4881c981b9dedf1a6d41dd58127e7d37aa71f2f2 100644 (file)
--- a/util.h
+++ b/util.h
@@ -51,6 +51,8 @@ struct timeval *timeval_store(struct timeval *tv, usec_t u);
 
 #define streq(a,b) (strcmp((a),(b)) == 0)
 
+bool streq_ptr(const char *a, const char *b);
+
 #define new(t, n) ((t*) malloc(sizeof(t)*(n)))
 
 #define new0(t, n) ((t*) calloc((n), sizeof(t)))