diff options
Diffstat (limited to 'src/kernel/util.h')
-rw-r--r-- | src/kernel/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/util.h b/src/kernel/util.h index b50810d..0aa2c4c 100644 --- a/src/kernel/util.h +++ b/src/kernel/util.h @@ -8,3 +8,7 @@ void *memcpy(void *dest, const void *src, size_t n); void *memset(void *s, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); + +// s1 MUST be a string known at compiletime +#define static_strcmp(s1, s2) \ + memcmp(s1, s2, sizeof(s1)) |