home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_02
/
9n02098a
< prev
next >
Wrap
Text File
|
1990-12-13
|
331b
|
12 lines
void *sbrk(int n); // prototype for sbrk
char *p,*q; // two pointers for allocated blocks
p = (char *)sbrk(100); // allocate a 100-byte block
q = (char *)sbrk(200); // allocate a 200-byte block
sbrk(-200); // free the 200-byte block
sbrk(-100); // free the 100-byte block