summaryrefslogtreecommitdiff
path: root/rushs/tinyprintf/digit/digit.c
diff options
context:
space:
mode:
Diffstat (limited to 'rushs/tinyprintf/digit/digit.c')
-rw-r--r--rushs/tinyprintf/digit/digit.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/rushs/tinyprintf/digit/digit.c b/rushs/tinyprintf/digit/digit.c
deleted file mode 100644
index 5646b13..0000000
--- a/rushs/tinyprintf/digit/digit.c
+++ /dev/null
@@ -1,13 +0,0 @@
-unsigned int digit(int n, int k)
-{
- if (n <= 0 || k <= 0)
- {
- return 0;
- }
-
- for (int i = 0; i < k - 1; i++)
- {
- n /= 10;
- }
- return n % 10;
-}