RE: Administrivia: List Announcement
> From: Wynn Fenwick [mailto:wynn.fenwick@cgi.com]
> Sent: Tuesday, May 13, 2003 4:44 PM
> The program uses malloc() then iterates through each memory
It may not *actually* be the case that memory returned by a single call to
malloc will be a "contiguous block". In fact, for various interpretations
of "contiguous block", this will frequently be the case in many modern
implementations. However, by the as-if rule, within any C program that
doesn't invoke Undefined Behavior, running on a conforming implementation,
it must be valid to access the contents of a block returned by malloc as the
members of an array that fits in that block, or as an array of unsigned
char. From the program's point of view, such arrays are always contiguous.
Michael Wojcik
Principal Software Systems Developer, Micro Focus
Received on Wed May 14 18:55:45 2003
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 14:07:39 EDT
|