##### Shinobi Library - Memory Management Function

# syMallocInit

Initializes the Malloc system

### FORMAT

`

  Void syMallocInit( *heap, size )
  void *heap
  Uint32 size

`

### PARAMETER

  `*heap` | Starting address of the area to be managed
  `size` | Size of memory to be managed

### RETURN

  None

### DESCRIPTION

  Specifies the area that is to be managed by the syMalloc library, and initializes the library. The memory management functions manage memory directly under the Shinobi library, which isn't intermediated by the OS. This function is executed within the `sbInitSystem()` function. The default values in the `sbInitSystem()` function are as follows:

  Heap area starting address: End of section B
  Heap size:To the end of memory

### NOTE

  This function regards the space starting from section B as the memory allocation space, and initializes the contents of memory. If there is a user section subsequent to section B, that section will be initialized. When allocating user sections, always allocate them in front of section B.

### REFERENCE

  `sbInitSystem()
  `

syMallocInit

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999