1 # Copyright (C) 2007-2009, Parrot Foundation.
6 C<sprintf> is a function common to most programmers as part of the C
7 standard library that allows the creation of a string from a given
8 format and a list of operators. Parrot's C<sprintf> operator extends
9 the format options of the regular sprintf function, and allows
10 arguments to be taken from inside an array PMC.
17 myarray = new ['ResizablePMCArray']
27 $S0 = sprintf "int %#Px num %+2.2Pf\n", myarray
28 print $S0 # prints "int 0x2a num +10.50"
37 # vim: expandtab shiftwidth=4 ft=pir: