J
James Kanze
On 01/11/11 03:01 AM, James Kanze wrote:
Most, yes. But dynamic allocation isn't imposed.
Not using malloc, no. But some sort of dynamic allocation is
more or less imposed for FILE.
Early versions of the C standard library used a statically
allocated pool of FILE, and "allocated" out of that. But it's
still a form of dynamic allocation (which can fail if there
aren't enough entries in the pool). Similarly, Microsoft's
HANDLE almost certainly points to something dynamically
allocated within the kernel. (Perhaps addressed through
a map---I don't know whether HANDLE is actually a void* or an
int. Which is as it should be.)