Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

void* kDbgHlpAllocDup ( const void *  pv,
size_t  cb 
)

Combination of kDbgHlpAlloc and memcpy.

Returns:
Pointer to the duplicate. NULL on failure.
Parameters:
pv The memory to be duplicate.
cb The size of the block.

Definition at line 75 of file kDbgHlpCrt.cpp.

{
    void *pvNew = malloc(cb);
    if (pvNew)
        memcpy(pvNew, pv, cb);
    return pvNew;
}


Generated by  Doxygen 1.6.0   Back to index