afaik, matteo is right:
sprintf(&s, "%.0s", "whatever")
outputs a null-length string to &s; i.e. afterwards
strcmp(s,{'\0'})==0
marmosets, Bryan
On 2009-12-11 06:13:20, Hans-Christoph Steiner hans@at.or.at appears to have written:
On Dec 9, 2009, at 12:41 PM, Matteo Sisti Sette wrote:
Hans-Christoph Steiner escribió:
What does printf do? It probably should mimic that behavior.
I think it should mimic sprintf's behaviour to be precise.
...
according to the definition it should just output a 0-length string.
Just write a tiny C program to test what sprintf() actually does.