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 <[email protected]> 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.
--
Bryan Jurish "There is *always* one more bug."
[email protected] -Lubarsky's Law of Cybernetic Entomology
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list