AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YDAT | YWAIT | Byzgraf | FAQs
strfmt (String fmt [, Object arg1, ..., Object argN]) yoix.string
 
Converts objects to strings under the control of a format specification, exactly the way sprintf does, but in this case the result is stored in a new null-terminated string that is returned to the caller.
 
 Example:   The program,
import yoix.stdio.*;
import yoix.string.*;

puts(strfmt("1 US Dollar = %g %s", 1.0469, "Euro"));
prints
1 US Dollar = 1.04690 Euro
on standard output.
 
 Return:   String
 
 See Also:   fprintf, printf, sprintf, strcasecmp, strcat, strchr, strcmp, strcpy, strcspn, strdel, strdup, strins, strjoin, strlen, strncasecmp, strncat, strncmp, strncpy, strpbrk, strrchr, strrstr, strsplit, strspn, strstr, strtok, toString

 

Yoix is a registered trademark of AT&T Intellectual Property.