From: Mark Wooding Date: Sun, 6 Mar 2022 16:22:32 +0000 (+0000) Subject: lib.h: Publish a `MEMCMP' macro, like `STRCMP'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/dvdrip/commitdiff_plain/2bbc0426ba4e0a3d40f542df507ee1124fce18a0 lib.h: Publish a `MEMCMP' macro, like `STRCMP'. --- diff --git a/lib.h b/lib.h index dc8d7de..0198c34 100644 --- 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