Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: Administrivia: List Announcement

From: Michael Wojcik <Michael.Wojcik(at)microfocus.com>
Date: Wed May 14 2003 - 10:44:15 EDT


> 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


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library