diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-14 19:28:50 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-14 19:28:50 +0300 |
commit | 8a1df492afae19d544fa5e5b636ed427b2d1c3f5 (patch) | |
tree | 746bcd13d37400d03e039ea92aae7c1a29ac08f8 /awklib/eg/lib | |
parent | 7796fb7a2e70c0252531bd224889baccacae1c9e (diff) | |
download | egawk-8a1df492afae19d544fa5e5b636ed427b2d1c3f5.tar.gz egawk-8a1df492afae19d544fa5e5b636ed427b2d1c3f5.tar.bz2 egawk-8a1df492afae19d544fa5e5b636ed427b2d1c3f5.zip |
Doc edits.
Diffstat (limited to 'awklib/eg/lib')
-rw-r--r-- | awklib/eg/lib/strtonum.awk | 8 |
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 |