SYNOPSIS

int MGOsprintf (char *string, char *format, ...)

DESCRIPTION

The MGOsprintf() function writes the format output to string, interpreting '%' directives and '\' escapes in the same way as sprintf(). The format argument is re-used as many times as necessary to convert all of the given arguments.

Extensions to the usual set of '%' directives include '%q', which will properly quote any embedded '(' and ')' characters in the string, and '%b', which hexify the string.

RETURN VALUE

Returns the number of characters written upon success or -1 if the resultant conversion failed.

SEE ALSO

MGOread(), MGOwrite()