From 8142854950bc510b8c21a210538d14a301dbcf63 Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Fri, 18 Oct 2019 20:46:58 +0300 Subject: skel update --- utils.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 utils.c (limited to 'utils.c') diff --git a/utils.c b/utils.c new file mode 100644 index 0000000..62fb0b2 --- /dev/null +++ b/utils.c @@ -0,0 +1,14 @@ +#include + +#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); +} -- cgit v1.2.3-70-g09d2