diff options
author | Marvin Borner | 2019-11-24 23:34:32 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-24 23:34:32 +0100 |
commit | bb57b124d1bb385d41747f50be7dd4f3625539c1 (patch) | |
tree | fe461afad63df40571784565e8d435cba8c8e59c /src/mlibc/string/strdisp.c | |
parent | f9c50b9ff23e9a3e8db5826fef7a6e7ebb8af21d (diff) |
Major coding style reformatting -> Kernighan & Ritchie
This project now (hopefully) uses the same style recommended by Kernighan and Ritchie and used in the Linux Kernel
Diffstat (limited to 'src/mlibc/string/strdisp.c')
-rw-r--r-- | src/mlibc/string/strdisp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mlibc/string/strdisp.c b/src/mlibc/string/strdisp.c index 6feb4ca..d793718 100644 --- a/src/mlibc/string/strdisp.c +++ b/src/mlibc/string/strdisp.c @@ -1,10 +1,12 @@ #include <mlibc/string.h> -void strdisponce(char *str) { +void strdisponce(char *str) +{ for (size_t i = sizeof(str) + 2; i > 0; i--) str[i] = str[i - 1]; str[0] = 0; } -void strdisp(char *str, int n) { +void strdisp(char *str, int n) +{ for (int i = 0; i < n; i++) strdisponce(str); }
\ No newline at end of file |