index
:
k&r-exercises
master
Solutions to the exercises in K&R from my days of learning C.
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
5/2.c
2
1 files changed, 0 insertions, 2 deletions
diff --git a/5/2.c b/5/2.c
index db37319..ba93a5e 100644
--- a/
5/2.c
+++ b/
5/2.c
@@ -57,10 +57,8 @@ int getfloat(float *pf) {
rad++;
continue;
}
-
if (rad)
div *= 10;
-
*pf = 10.0 * *pf + (c - '0');
}