From 521d01e8ad87e931af3e9a763cc84a6cf7fe5ee3 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 09:47:21 -0800 Subject: Feat: basic string and memory functions Continue filling out the basic standard lib functions. Included prototypes of the str* and mem* families. Plan to add e(str|mem) and n(str|mem) variants as well. --- src/base/string/lower.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/string/lower.c') diff --git a/src/base/string/lower.c b/src/base/string/lower.c index c6935f8..00556d6 100644 --- a/src/base/string/lower.c +++ b/src/base/string/lower.c @@ -2,11 +2,11 @@ // lower will force all runes in the string to be lowercase void -str·lower(string s) +string·lower(string s) { byte *b, *e; b = s; - e = b + str·len(s); + e = b + string·len(s); while (b++ != e) *b = tolower(*b); } -- cgit v1.2.1