Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Memory block free
  Function Name  
MEM_Free
No
3

 
format voidMEM_Free (void * mem_ptr) Input mem_ptr: Pointer to memory block Output None Function value None Function The specified memory block is released. The memory block that can be specified is MEM_Calloc, Secured by MEM_Malloc, MEM_Realloc.

  Title  
Function specifications
  Function  
Secure memory block
  Function Name  
MEM_Malloc
No
4

 
format void * MEM_Malloc (Uint32 mem_size) Input mem_size: Requested memory block size (byte specification) Output None Function value Returns a pointer to the allocated memory area when the process ends normally. NULL on error Returns . Function A memory block for the requested memory block size is secured in the memory management area, and its pointer Returns . If the requested memory block size is 0, NULL is returned as the function value. Initial at 0 is not changed to .

  Title  
Function specifications
  Function  
Memory reallocation
  Function Name  
MEM_Realloc
No
5

 
format void * MEM_Realloc (void * mem_ptr, Uint32 mem_size) Input mem_ptr: Pointer to the previous memory block : mem_size: New memory block size (byte specification) Output None Function value If normal, returns a pointer to the reallocated memory. NULL on error Returns . Function The memory block size of the pointer to the memory block before the designation is changed to the new memory block. Change to size. The contents of the previous memory block are reassigned to the new area. Transferred to .


Return to previous page Return to menu Go to next page