chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ea9ce2
)
lib.h: Publish a `MEMCMP' macro, like `STRCMP'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 16:22:32 +0000
(16:22 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 16:22:32 +0000
(16:22 +0000)
lib.h
patch
|
blob
|
blame
|
history
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 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
#ifdef DEBUG
# define D(x) x