tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Changes to add snscanf/vsnscanf



> snscanf(const char *str, const size_t n, char const *fmt, ...)

>       _DIAGASSERT(str != NULL);

I would prefer to see this conditional on n>0; if n==0 then I think str
should not have to be non-nil.  (Similarly in vsnscanf.)

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index