diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-10 04:38:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-10 04:38:14 +0200 |
commit | e05797fba258d7a58987cc8870fae6e34b94fe46 (patch) | |
tree | 7c1f6b70658ef2f73acaa40f8e402c463f098bc0 /util.h | |
parent | 2e317f525f1cc9f81acd15255d10a5c1c0bcd7b1 (diff) |
util: introduce streq_ptr() for comparing strings or their pointers
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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))) |