diff options
Diffstat (limited to 'src/kernel/lib/string/strinv.c')
-rw-r--r-- | src/kernel/lib/string/strinv.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/kernel/lib/string/strinv.c b/src/kernel/lib/string/strinv.c deleted file mode 100644 index 90cb581..0000000 --- a/src/kernel/lib/string/strinv.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <lib/string.h> - -void strinv(char *str) -{ - u32 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; - } -}
\ No newline at end of file |