aboutsummaryrefslogtreecommitdiffstats
path: root/awklib
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-14 19:28:50 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-14 19:28:50 +0300
commit8a1df492afae19d544fa5e5b636ed427b2d1c3f5 (patch)
tree746bcd13d37400d03e039ea92aae7c1a29ac08f8 /awklib
parent7796fb7a2e70c0252531bd224889baccacae1c9e (diff)
downloadegawk-8a1df492afae19d544fa5e5b636ed427b2d1c3f5.tar.gz
egawk-8a1df492afae19d544fa5e5b636ed427b2d1c3f5.tar.bz2
egawk-8a1df492afae19d544fa5e5b636ed427b2d1c3f5.zip
Doc edits.
Diffstat (limited to 'awklib')
-rw-r--r--awklib/eg/lib/strtonum.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/awklib/eg/lib/strtonum.awk b/awklib/eg/lib/strtonum.awk
index 5e20626b..f82c89c5 100644
--- a/awklib/eg/lib/strtonum.awk
+++ b/awklib/eg/lib/strtonum.awk
@@ -13,8 +13,8 @@ function mystrtonum(str, ret, n, i, k, c)
ret = 0
for (i = 1; i <= n; i++) {
c = substr(str, i, 1)
- # index() returns 0 if c not in string,
- # includes c == "0"
+ # index() returns 0 if c not in string,
+ # includes c == "0"
k = index("1234567", c)
ret = ret * 8 + k
@@ -27,8 +27,8 @@ function mystrtonum(str, ret, n, i, k, c)
for (i = 1; i <= n; i++) {
c = substr(str, i, 1)
c = tolower(c)
- # index() returns 0 if c not in string,
- # includes c == "0"
+ # index() returns 0 if c not in string,
+ # includes c == "0"
k = index("123456789abcdef", c)
ret = ret * 16 + k