diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 11:59:06 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 11:59:23 +0200 |
| commit | a378ff1b173f7a67272e574fb1a2c275ecb9661b (patch) | |
| tree | 9ee34a7491c7c7bd66cf39096bc62185eaa4ed09 /string.c | |
| parent | 54db532879ed3f6d76463a3ab3f3895bd41c861c (diff) | |
test: rewrite tests
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -11,6 +11,7 @@ Str *Str_new(Arena *a, uintptr_t len) { return s; } +// Returns 1 if strings are equal, 0 otherwise int Str_equals(Str a, Str b) { return (a.len == b.len) && (!a.len || !memcmp(a.data, b.data, a.len)); } |
