diff options
author | axtlos <axtlos@disroot.org> | 2024-09-27 21:31:47 +0200 |
---|---|---|
committer | axtlos <axtlos@disroot.org> | 2024-09-27 21:31:47 +0200 |
commit | b2182396df5d99ff5c26161aaffa5ced879742c5 (patch) | |
tree | c848fc157ab55c63b49b063d212c1671fa41afae /tests/test_join_str.c | |
parent | 7aa261f8d57cb53cc334f6bf1920a6f8517ff054 (diff) | |
download | extlib-b2182396df5d99ff5c26161aaffa5ced879742c5.tar.gz extlib-b2182396df5d99ff5c26161aaffa5ced879742c5.tar.bz2 |
Fix join_str on musl and add manpage
Diffstat (limited to '')
-rw-r--r-- | tests/test_join_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_join_str.c b/tests/test_join_str.c index 711c864..f756b2e 100644 --- a/tests/test_join_str.c +++ b/tests/test_join_str.c @@ -11,9 +11,9 @@ test_join_str () for (int i = 0; i < 3; i++) test_string[i] = strdup ("hello"); - char *joined_string = join_str (test_string, 3, ' '); + char *joined_string = join_str (test_string, 3, " && "); - if (strcmp (joined_string, "hello hello hello") != 0) + if (strcmp (joined_string, "hello && hello && hello") != 0) errno = 1; free_secure ((void **) &test_string[0], strlen (test_string[0])); |