Mercurial > pub > dyncall > bindings
diff python/pydc/examples/atoi.py @ 48:a2125195b052
added callconv switching to one example
author | Tassilo Philipp |
---|---|
date | Fri, 13 Nov 2020 18:27:09 +0100 |
parents | edbbd467f50a |
children |
line wrap: on
line diff
--- a/python/pydc/examples/atoi.py Fri Nov 13 18:04:05 2020 +0100 +++ b/python/pydc/examples/atoi.py Fri Nov 13 18:27:09 2020 +0100 @@ -16,6 +16,7 @@ fp_atoi = find(libc,"atoi") fp_atof = find(libc,"atof") +fp_printf = find(libc,"printf") @@ -25,3 +26,6 @@ print(atoi("3".join(["12","45"]))) print(atod("3".join(["12","45"]))) +# w/ some text - tests vararg callconv switch +call(fp_printf,"_eZ_.id)i", "and again: %d %f\n", atoi("31245"), atod("31245")) +