diff options
author | Marvin Borner | 2020-03-18 17:32:50 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-18 17:32:50 +0100 |
commit | f495cc1e93710c233292a503720ec235a61b685c (patch) | |
tree | 23b0b4b82b6d80001c1ffdb15f00b93cbdc65722 /src/userspace/mlibc/string/strinv.c | |
parent | c6657aac0c5d5ecf347bc082cb6df38e1174d297 (diff) |
Applied official linux kernel code style guidelines
Due to my change to vim and the clang-format plugin this was needed!
Diffstat (limited to 'src/userspace/mlibc/string/strinv.c')
-rw-r--r-- | src/userspace/mlibc/string/strinv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/userspace/mlibc/string/strinv.c b/src/userspace/mlibc/string/strinv.c index 4f54775..20b916e 100644 --- a/src/userspace/mlibc/string/strinv.c +++ b/src/userspace/mlibc/string/strinv.c @@ -2,12 +2,12 @@ void strinv(char *str) { - size_t s_str = strlen(str); + size_t s_str = strlen(str); - int iterations = (int) s_str / 2; - for (int i = 0; i < iterations; i++) { - char aux = str[i]; - str[i] = str[(s_str - i) - 1]; - str[(s_str - i) - 1] = aux; - } + int iterations = (int)s_str / 2; + for (int i = 0; i < iterations; i++) { + char aux = str[i]; + str[i] = str[(s_str - i) - 1]; + str[(s_str - i) - 1] = aux; + } }
\ No newline at end of file |