sprintf

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Print formatted output to a string

Arguments and Return Values

Arguments: A string

Return Value: A string

Usage

Syntax: sprintf(command)

The sprintf() function is a direct interface to the the C library function of the same name, except that the output string is returned, not passed.

Examples

dv> s = sprintf("The value of 3+4 is %d\n",3+4)
"The value of 3+4 is 7
"

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 01-13-2017

Personal tools