16 Aug
2007
16 Aug
'07
10:48 p.m.
On Thu, Aug 16, 2007 at 06:09:58PM -0400, Travis Willard wrote:
On Thu, 16 Aug 2007 14:45:40 -0400 "Dan McGee" <dpmcgee@gmail.com> wrote:
Regarding the null byte thing- calloc zeros the memory, and while I would assume that is the same as the null byte,
It is. Setting the end of the string to '\0' (which == 0) is unnecessary - but it won't waste much CPU time and it prevents issues in the future (if it's ever changed from calloc to malloc again), so I don't see a problem with it being there.
Right, fair enough ;)