summaryrefslogtreecommitdiffstats
path: root/4
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-23 18:25:08 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-23 18:25:08 +0800
commit6a7562f287e3394db8ff60f78d364f38ecefb461 (patch)
treedc2ffed6edfc275db1f6cc2b000d23336c22dfa2 /4
parent1d08b6c4c915caae98f2592a4046f2e8bbbf4f61 (diff)
downloadk&r-exercises-6a7562f287e3394db8ff60f78d364f38ecefb461.tar.gz
4.12
Diffstat (limited to '4')
-rw-r--r--4/12.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/4/12.c b/4/12.c
index 9d5a0e2..f738710 100644
--- a/4/12.c
+++ b/4/12.c
@@ -24,12 +24,6 @@ int main() {
int step = 0;
void mitoa(int n, char s[]) {
- if (step >= MAXLEN - 1) {
- s[MAXLEN - 1] = 0;
- printf("error: number too large.\n");
- return;
- }
-
if (n < 0) {
s[step++] = '-';
n = -n;