Name:
F r o z e n V o i d !!mJCwdV5J0Xy2A212011-12-09 12:34
>>37
What if -1 is in 64-bit system, its allocating 0xFFFFFFFFFFFFFFFF bytes?
Just because it doesn't not handle -1, does mean its a proper function.
enterprise_safe_malloc() would take a signed integer as argument and printf a detailed explanation of your attempt to allocate negative bytes.