chiark
/
gitweb
/
~mdw
/
dvdrip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib.h: Publish a `MEMCMP' macro, like `STRCMP'.
[dvdrip]
/
lib.h
diff --git
a/lib.h
b/lib.h
index dc8d7deea2c63676cc5ef07f18dde04e086e2e05..0198c346b4ecb340bced02d7f761a3266ceccd45 100644
(file)
--- a/
lib.h
+++ b/
lib.h
@@
-43,6
+43,7
@@
#define STRCMP(a, op, b) (strcmp((a), (b)) op 0)
#define STRNCMP(a, op, b, n) (strncmp((a), (b), (n)) op 0)
+#define MEMCMP(a, op, b, n) (memcmp((a), (b), (n)) op 0)
#ifdef DEBUG
# define D(x) x