aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strinv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/string/strinv.c')
-rw-r--r--src/kernel/lib/string/strinv.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/lib/string/strinv.c b/src/kernel/lib/string/strinv.c
index b4b4212..071a99d 100644
--- a/src/kernel/lib/string/strinv.c
+++ b/src/kernel/lib/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