[PD] makefilename inconsistency (or not?)
Bryan Jurish
jurish at uni-potsdam.de
Fri Dec 11 11:18:28 CET 2009
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 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.
--
Bryan Jurish "There is *always* one more bug."
jurish at ling.uni-potsdam.de -Lubarsky's Law of Cybernetic Entomology
More information about the Pd-list
mailing list