Any of you old C wolves ever feel nostalgic about good, old, trusted printf()?
I did, and since when it comes to JavaScript I write first and Google later, here is what I came up with: www.vladdy.net/Demos/printf.html
Integer length modifiers and pointer types are not supported in my emulation for obvious reasons.
Bugs are quite possible - bug reports are quite welcome.
WA: I thought the script is too long to post inline. If you think different, I would be happy to follow the category guidelines and correct my mistake.
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
You need to add some arguments:
printf('Integer: %i',23)
printf('',) will sure cause a syntax error.
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
I'm glad you found it useful.
as far as scanf goes... cant do &r
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"