-

Functions HI-TECH C SBRK

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 23:14, 31 July 2017 by Kumokosi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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