diff options
author | Freya Murphy <freya@freyacat.org> | 2025-03-27 11:39:12 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-03-27 11:39:12 -0400 |
commit | 0ff301cda68669c59351e5854ce98f2cf460543f (patch) | |
tree | cfe8f976261962420ada64b821559b9da0a56841 /lib/strlen.c | |
parent | add compile_flags.txt for clangd lsp (diff) | |
download | comus-0ff301cda68669c59351e5854ce98f2cf460543f.tar.gz comus-0ff301cda68669c59351e5854ce98f2cf460543f.tar.bz2 comus-0ff301cda68669c59351e5854ce98f2cf460543f.zip |
pull upstream changes, add auto formatting
Diffstat (limited to 'lib/strlen.c')
-rw-r--r-- | lib/strlen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/strlen.c b/lib/strlen.c index b41fe69..4687a8a 100644 --- a/lib/strlen.c +++ b/lib/strlen.c @@ -20,13 +20,14 @@ ** ** @return The length of the string, or 0 */ -uint32_t strlen( register const char *str ) { +uint32_t strlen(register const char *str) +{ register uint32_t len = 0; - while( *str++ ) { + while (*str++) { ++len; } - return( len ); + return (len); } #endif |