summaryrefslogtreecommitdiffstatshomepage
path: root/py/strtonum.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-22 17:49:15 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-22 17:49:15 +0000
commit2613ffde431594f3fe0562042c32105623fbe4dc (patch)
tree7b12ffbe18867132e665b66a44f6f72bfcc72e6f /py/strtonum.h
parent0379b55ab036921eaee96f07385d2329d8de97fd (diff)
downloadmicropython-2613ffde431594f3fe0562042c32105623fbe4dc.tar.gz
micropython-2613ffde431594f3fe0562042c32105623fbe4dc.zip
py: Rename strtonum to mp_strtonum.
strtonum clashes with BSD function of same name, and our version is different so warrants a unique name. Addresses Issue #305.
Diffstat (limited to 'py/strtonum.h')
-rw-r--r--py/strtonum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/strtonum.h b/py/strtonum.h
new file mode 100644
index 0000000000..10b6732edb
--- /dev/null
+++ b/py/strtonum.h
@@ -0,0 +1 @@
+long mp_strtonum(const char *restrict s, int base);