mirror of
https://github.com/cc65/cc65.git
synced 2025-01-24 20:30:08 +00:00
Added info about the new .sprintf function
git-svn-id: svn://svn.cc65.org/cc65/trunk@3509 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
765dc3442b
commit
f06dc5dfa3
@ -1498,6 +1498,25 @@ either a string or an expression.
|
||||
</verb></tscreen>
|
||||
|
||||
|
||||
<sect1><tt>.SPRINTF</tt><label id=".SPRINTF"><p>
|
||||
|
||||
Builtin function. It expects a format string as first argument. The number
|
||||
and type of the following arguments depend on the format string. The format
|
||||
string is similar to the one of the C <tt/printf/ function. Missing things
|
||||
are: Length modifiers, variable width.
|
||||
|
||||
The result of the function is a string.
|
||||
|
||||
Example:
|
||||
|
||||
<tscreen><verb>
|
||||
num = 3
|
||||
|
||||
; Generate an identifier:
|
||||
.ident (.sprintf ("%s%03d", "label", num)):
|
||||
</verb></tscreen>
|
||||
|
||||
|
||||
<sect1><tt>.STRING</tt><label id=".STRING"><p>
|
||||
|
||||
Builtin function. The function accepts an argument in braces and converts
|
||||
|
Loading…
x
Reference in New Issue
Block a user