EAGLE Help

sprintf()


Function
Writes formatted output into a string.

Syntax
int sprintf(string result, string format[, argument, ...]);

Returns
The sprintf function returns the number of characters written into the result string.

In case of an error, sprintf returns -1.

See also printf

Format string

See printf.

Example

string result;
int number = 42;
sprintf(result, "The number is %d", number);

Index Copyright © 1999 CadSoft Computer GmbH