Jump to content

Category:S-lang: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 15:
For simplicity, many of the S-Lang tasks use the print()
function. This is not part of S-Lang per se, but is normally
included in the "slsh" S-Lang shell "slsh". If it is missing, or you're
using some other S-Lang environment, options include a C-like
sprintf() and printf(). Their format and parameters work about
like you'd expect in a C-inspired interpreted language.
 
<code>sprintf(f, d..)</code> [f=string format, d..=zero or more data items]
returns a string. <code>printf(f, d..)</code> prints to "stdout" and returns
the number of items formatted: remember S-Lang is a "stack
language", so even if you don't care about that number, your code
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.