diff options
| author | Mosder <git@mosder.eu> | 2026-09-28 13:27:35 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-28 13:27:35 +0200 |
| commit | 7a1f842b91af4f916501eaea991b897e3db4c502 (patch) | |
| tree | c2e9c5180a45585ff9e61158a4395ca066050a01 /tests/string_tests.c | |
| parent | b79ccf95459e7edb303dabfe3a26e624bd9d8679 (diff) | |
refactor: prefixed compat functions (and added a macro to libc implementations - if they exist), so they do not take reserved names anymore
Diffstat (limited to 'tests/string_tests.c')
| -rw-r--r-- | tests/string_tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_tests.c b/tests/string_tests.c index 282927c..f1009f9 100644 --- a/tests/string_tests.c +++ b/tests/string_tests.c @@ -56,7 +56,7 @@ TEST(comparing) { test_assert(ss_eq(ss, ss), "slice is not equal to itself"); test_assert(ss_eq_str(ss, ss.data), "slice is not equal to its C string"); - char *hw = strdup("hello world"); + char *hw = mos_strdup("hello world"); StringSlice ss2 = ss_from_str(hw); test_assert(ss_eq(ss, ss2), "slice is not equal to an equal slice"); test_assert(ss_eq_str(ss, hw), "slice is not equal to an equal string"); |
