Re: printf fix

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie Ryan wrote:

>Correction make that SPRINTF;
>
>   If I do this: ? sprintf("\t\t abcd",0)
>
>   I get { 9,9,32,97,98,99,100 }
>
>   shouldn't the tabs be expanded into spaces ?

The ? operator will always return the sequence representation of any string.
Try coding ? "\t\t abcd" -- you get the same result. The 9's are the tab
characters. It's not a sprintf() problem, it's the way Euphoria works. Use
puts(1, sprintf("\t\t abcd", 0)) or printf(1, "\t\t abcd", 0) if you want to
see the tabs expanded.

-- Gabriel

______________________________________________________
PLEASE IGNORE ANY ADS YOU MAY SEE BELOW THIS LINE. smile
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu