Here's how I wrapped printf, allowing for varargs: https://gist.github.com/dpo/11000433 I'd be interested in any comments. I expect it's possible to wrap scanf similarly?!
On Friday, February 21, 2014 5:05:32 PM UTC-8, Stefan Karpinski wrote: > > You could maybe make vscanf and company work though. In general, using the > c library for this kind of thing will be awkward. > > > On Feb 21, 2014, at 7:12 PM, "Steven G. Johnson" > > <[email protected]<javascript:>> > wrote: > > > > Varargs functions like scanf won't work with ccall, in general. >
