On 10/31/07, Ozzi <[EMAIL PROTECTED]> wrote: > I'd like to wrap C's printf so that I can do something like this: > > (c-printf "The %s of %d and %d is %d" "sum" 1 1 2) > > Which would print "The sum of 1 and 1 is 2." >
As Z. pointed out, the "$" macro can do this to some extent, but it's a bit ugly. A pure Scheme implementation that (IIRC) comes relatively close to C's printf is part of slib: http://trac.callcc.org/browser/slib/printf.scm cheers, felix _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users