CFAllocatorAllocateHeader: CFBase.h

Allocates memory using the specified allocator.

void *CFAllocatorAllocate (
    CFAllocatorRef allocator, 
    CFIndex size, 
    CFOptionFlags hint
);
allocator

A reference of type CFAllocatorRef that refers to the allocator object to be used for allocating memory. Pass a reference to a valid allocator or NULL to request the default allocator.

size

An integer value of type CFIndex. Pass the number of bytes you want allocated

hint

A bitfield of type CFOptionsFlags. Pass flags to the allocator that suggest how memory is to be allocated. Zero indicates no hints.

function result

A pointer to an allocated block of memory. Returns NULL if size is zero.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)