char *sbrk (size_t size)


[Description]

-

The size of the memory area to be allocated is passed as a parameter.

-

When calling the sbrk routine several times, memory areas should be allocated in succession starting from lower addresses. If the memory area for allocation is insufficient, an error should occur. When allocation is successful, the address of the beginning of the allocated memory area should be returned; if unsuccessful, "(char *) -1" should be returned.

-

If you wish to use the standard library function malloc, calloc, or realloc, or the C++ function new, allocate at least 16 bytes of memory.

[Return value]

Normal: Start address of allocated memory
Error: (char *) -1

[Parameters]

size Size of data to be allocated