If the memory manager can fulfill the malloc request it will return a memory pointer to the allocated memory...if it fails it returns NULL.
If malloc returns a pointer other than NULL then you have your requested memory.
gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0
Question Answered as of 1 Year Ago by
sergent
and
gerard4143