Over zealous redefinition of bzero creates portability issues

jra at dp.samba.org jra at dp.samba.org
Mon Jun 16 07:18:29 GMT 2003

On Mon, Jun 16, 2003 at 05:13:56PM +1000, Martin Pool wrote:
> I have seen subtle bugs because of people getting the arguments to
> memset() the wrong way around, which will not give a warning.  bzero()
> nicely avoids this problem and I think it's far better for that
> reason, and anyhow, it's easy to implement on systems that are missing
> it.  

bzero is not standardized. It doesn't matter if you like the interface
it's not guarenteed to be there. memset is a standard. We like standards :-).


More information about the samba-technical mailing list