Change slice functions to have proper naming

This commit is contained in:
cannoli-fruit 2026-07-15 03:55:05 -04:00
commit 44c9833117
3 changed files with 3 additions and 4 deletions

View file

@ -1,3 +1,2 @@
# TODO
Change all string slice functions to start with lz_slc
Make examples for slc and sb atoi,atof,atol, and atoll

View file

@ -12,7 +12,7 @@ int main() {
Lz_Slc word;
int i = 0;
do {
lz_split_slc_typ(&s, isnotalpha, &word);
lz_slc_split_typ(&s, isnotalpha, &word);
printf("Word %d: "LZ_STR_FMT"\n", i, LZ_STR_PRINTF(word));
++i;
} while(s.cnt != 0);

View file

@ -8,7 +8,7 @@ int main() {
Lz_Slc s = lz_cstr_to_slc(src);
printf("|"LZ_STR_FMT"|\n", LZ_STR_PRINTF(s));
lz_trim_typ(&s, isspace);
lz_slc_trim_typ(&s, isspace);
printf("|"LZ_STR_FMT"|\n", LZ_STR_PRINTF(s));