DragonFly BSD
DragonFly submit List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: style(9) sweep on config(8)


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Mar 2004 19:04:56 -0800 (PST)

    Using bzero() is just fine.  In fact, I prefer it over both
    calloc() and memset().

    The reason why bzero() is still used by many people is simply
    because it has a superior API to memset() for zeroing memory.
    Many people get annoyed at having to specify the extra arg
    in memset() just to zero memory and many people also hate
    calloc() for the same reason (and the extra unnecessary multiply
    that calloc() has to do).

					-Matt



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