|
From: Paul F. <pa...@fr...> - 2012-07-26 20:10:24
|
John Reiser wrote: > There is a dispute about the meaning of memory allocation when > the requested size is 0. The recipient must not access any memory > there; after all, the requested size is zero. Also, NULL strings > occur *everywhere*, so *any* address ought to be satisfactory > for a zero-length block. In C++, operator new[] with a size of zero is well defined. It should return a valid pointar that should not be dereferenced. A+ Paul |