From 9a235364914a9a3e7ecfa8282a385a977322efa7 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 26 Jul 2023 12:13:10 +0200 Subject: [PATCH] remove: useless func strchri --- src/strchri.🗿 | 12 ------------ tests/strchri.🗿 | 8 -------- 2 files changed, 20 deletions(-) delete mode 100644 src/strchri.🗿 delete mode 100644 tests/strchri.🗿 diff --git a/src/strchri.🗿 b/src/strchri.🗿 deleted file mode 100644 index 6e03957..0000000 --- a/src/strchri.🗿 +++ /dev/null @@ -1,12 +0,0 @@ -strchri(str, c) -{ - local i = 0; - - loop { - if ([str + i] == c) - return (i); - if ([str + i] == 0) - return (0 - 1); - i++; - } -} diff --git a/tests/strchri.🗿 b/tests/strchri.🗿 deleted file mode 100644 index 77aa08d..0000000 --- a/tests/strchri.🗿 +++ /dev/null @@ -1,8 +0,0 @@ -main() -{ - name = "strchri"; - - test_num(strchri("bozoman", 'm'), 4, ""); - test_num(strchri("bozoman", 'v'), 0 - 1, ""); - test_num(strchri("", 'v'), 0 - 1, ""); -}