diff options
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#include <string.h> + +#include "utils.h" + +bool strequal(const char *a, const char *b) +{ + if (!a && !b) + return true; + + if (!a || !b) + return false; + + return !strcmp(a, b); +} |
