From 44c9833117eb2518e0f693c1345a0162f3b3d5c3 Mon Sep 17 00:00:00 2001 From: cannoli-fruit Date: Wed, 15 Jul 2026 03:55:05 -0400 Subject: [PATCH] Change slice functions to have proper naming --- TODO.md | 3 +-- examples/string_split.c | 2 +- examples/string_trim.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 7ab4a92..c253521 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/examples/string_split.c b/examples/string_split.c index 5f42fa4..58f27bd 100644 --- a/examples/string_split.c +++ b/examples/string_split.c @@ -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); diff --git a/examples/string_trim.c b/examples/string_trim.c index 1922ca4..c75d7c7 100644 --- a/examples/string_trim.c +++ b/examples/string_trim.c @@ -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));