# HG changeset patch # User Tassilo Philipp # Date 1605288429 -3600 # Node ID a2125195b052996aaa1c9510449dd22528511e53 # Parent 44045db8fa5fc4374ed27e3cb16c409626c40f6f added callconv switching to one example diff -r 44045db8fa5f -r a2125195b052 python/pydc/examples/atoi.py --- 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")) +