-

Difference between revisions of "Functions HI-TECH C SBRK"

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search
(Created page with "<strong>SBRK</strong> ==SYNOPSIS== char * sbrk(int incr) ==DESCRIPTION== <strong>Sbrk</strong>() increments the current highest memory location allocated to the pro...")
 
(No difference)

Latest revision as of 23:14, 31 July 2017

SBRK

SYNOPSIS

char *    sbrk(int incr)


DESCRIPTION

Sbrk() increments the current highest memory location allocated to the program by incr bytes. It returns a pointer to the previous highest location. Thus sbrk(0) returns a pointer to the current highest location, without altering its value. If there is insufficient memory to satisfy the request, -1 is returned.

SEE ALSO

brk, malloc, calloc, realloc, free