Add STRNEQ macro function

This commit is contained in:
Abdelrahman Said 2023-11-02 00:12:23 +00:00
parent 041167d26f
commit 490ccfc3c6

View File

@ -5,8 +5,10 @@
#include <linux/limits.h> #include <linux/limits.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#define STREQ(S1, S2) (strcmp(S1, S2) == 0) #define STREQ(S1, S2) (strcmp(S1, S2) == 0)
#define STRNEQ(S1, S2, COUNT) (strncmp(S1, S2, COUNT) == 0)
typedef struct dirwalk dirwalk_t; typedef struct dirwalk dirwalk_t;
typedef struct { typedef struct {