[Swift-user] Continuation on formatting in swift

Allan Espinosa aespinosa at cs.uchicago.edu
Fri Jun 25 16:15:42 CDT 2010


What about using printf(1) instead of echo(1)?

-Allan

2010/6/25 Lee S <jadeddragon1111 at yahoo.com>:
> Hello,
>
> If I am trying to pass this ass an argument to echo (to pass to readdata)
>
>
>
> (file out)yr_prntApp(int year, string conv)
>
> {
>
> app{
>
>         echo @strcat(conv,"`printf%"04d"",year);
>
> }}
>
>
>
> How do I get swift to accept the 'printf%"04d" portion ? (i think the %
> and/or "04d" are creating an error
>
> Thank you
>



More information about the Swift-user mailing list