lib/util/streq.h
raw| 1 | /// @file |
| 2 | /// @ingroup cgraph_utils |
| 3 | #pragma once |
| 4 | |
| 5 | #include <assert.h> |
| 6 | #include <stdbool.h> |
| 7 | #include <stddef.h> |
| 8 | #include <string.h> |
| 9 | |
| 10 | /// are `a` and `b` equal? |
| 11 | static inline bool streq(const char *a, const char *b) { |
| 12 | assert(a != NULL); |
| 13 | assert(b != NULL); |
| 14 | return strcmp(a, b) == 0; |
| 15 | } |