diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2019-10-18 20:46:58 +0300 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2019-10-18 21:14:24 +0300 |
| commit | 8142854950bc510b8c21a210538d14a301dbcf63 (patch) | |
| tree | db4ecc964090218f50f1e9c4a8797544f9d45879 /utils.c | |
| parent | 3b00c7be0e8834402ed93eb42b3a93302076c5ff (diff) | |
skel update
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); +} |
