summaryrefslogtreecommitdiff
path: root/rushs/tinyprintf/str_revert/str_revert.c
diff options
context:
space:
mode:
Diffstat (limited to 'rushs/tinyprintf/str_revert/str_revert.c')
-rw-r--r--rushs/tinyprintf/str_revert/str_revert.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/rushs/tinyprintf/str_revert/str_revert.c b/rushs/tinyprintf/str_revert/str_revert.c
deleted file mode 100644
index 31f7f3d..0000000
--- a/rushs/tinyprintf/str_revert/str_revert.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "str_revert.h"
-
-#include <stddef.h>
-
-void str_revert(char str[])
-{
- if (*str == '\0')
- {
- return;
- }
-
- size_t len = 0;
- for (; str[len]; len++)
- {
- continue;
- }
- len--;
-
- for (size_t i = 0; i <= len / 2; i++)
- {
- char tmp = str[i];
- str[i] = str[len - i];
- str[len - i] = tmp;
- }
-}