SPRINTF(format
,arg1
[,arg2
[,argN
]])
man 3 sprintf
.exten => 123,1,Verbose(1,${SPRINTF(%d Grad in den Alpen bis %d Grad im Breisgau,3,8)}) exten => 123,n,Set(beispiel=${SPRINTF(Ich esse gerne %s,Nusskuchen)}) exten => 123,n,Verbose(1,beispiel: ${beispiel})
| | | 1.4 |————————| 1.6 |————————
-= Info about function 'SPRINTF' =-
[Syntax]
SPRINTF(<format>|<arg1>[|...<argN>])
[Synopsis]
Format a variable according to a format string
[Description]
Parses the format string specified and returns a string matching that format.
Supports most options supported by sprintf(3). Returns a shortened string if
a format specifier is not recognized.
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -1,7 +1,7 @@
-= Info about function 'SPRINTF' =-
[Syntax]
- SPRINTF(<format>|<arg1>[|...<argN>])
+ SPRINTF(<format>,<arg1>[,...<argN>])
[Synopsis]
Format a variable according to a format string