Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions handy.h
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,8 @@ based on the underlying C library functions):
#define strnNE(s1,s2,l) (strncmp(s1,s2,l) != 0)
#define strnEQ(s1,s2,l) (strncmp(s1,s2,l) == 0)

#define memEQ(s1,s2,l) (memcmp(((const void *) (s1)), ((const void *) (s2)), l) == 0)
#define memNE(s1,s2,l) (! memEQ(s1,s2,l))
#define memNE(s1,s2,l) (memcmp(s1,s2,l) != 0)
#define memEQ(s1,s2,l) (memcmp(s1,s2,l) == 0)

/* memEQ and memNE where second comparand is a string constant */
#define memEQs(s1, l, s2) \
Expand Down
Loading