Check p for null. If it is, issue out of memory error and exit program.
pointer to check for null
p if not null
See Implementation
Check p for null. If it is, issue out of memory error and exit program.