Ignore:
Timestamp:
Nov 1, 2006, 8:17:21 PM (19 years ago)
Author:
bird
Message:

Roughly done with kldrDyldMod now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrHlpHeap.c

    r2826 r2847  
    217217{
    218218    return kLdrHeapAlloc(&g_Heap, cb);
     219}
     220
     221
     222/**
     223 * Allocates zero initialized memory from the kLdr heap.
     224 *
     225 * @returns Pointer to the allocated heap block. NULL if we can't satify the request.
     226 * @param   cb      The requested heap block size.
     227 */
     228void *kldrHlpAllocZ(size_t cb)
     229{
     230    void *pv = kLdrHeapAlloc(&g_Heap, cb);
     231    if (pv)
     232        kLdrHlpMemSet(pv, 0, cb);
     233    return pv;
    219234}
    220235
Note: See TracChangeset for help on using the changeset viewer.