[procedure] fprintf port format-spec obj ...

Chicken: formats objs by format-spec and returns the result string. Recognizes "
", "~S", "~A", "~\n", "~B", "~O", "~X", "~C", "~~", "~!", "~?".

Note: ChezScheme doesn't have this.

See also printf, fprintf.

[procedure] sprintf out format-spec obj ...

SLIB: formats obj and stores the result to out if it is a string. If out is #f, returns newly allocated string. If out is an integer, returns newly allocated string whose length is up to the number. Format specification is C-like.

See also printf, fprintf