summaryrefslogtreecommitdiff
path: root/ch2/2-03.c
diff options
context:
space:
mode:
Diffstat (limited to 'ch2/2-03.c')
-rw-r--r--ch2/2-03.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ch2/2-03.c b/ch2/2-03.c
index 54ce89f..0376484 100644
--- a/ch2/2-03.c
+++ b/ch2/2-03.c
@@ -8,7 +8,7 @@ unsigned int htoi(char hex[]) {
int power;
unsigned int result;
- for (length = 0; hex[length] != '\0'; ++length)
+ for (length = 0; hex[length]; ++length)
power = 1;
result = 0;