Chapter Contents

Previous

Next
hppop

hppop



Restore Previous Heap as Current Heap


SYNOPSIS
DESCRIPTION
RETURN VALUE
IMPLEMENTATION
EXAMPLE
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

#include <multheap.h>
int hppop(void);


DESCRIPTION

hppop removes the heap specified by the previous call to hppush from the heap stack, restoring the previous default heap. If no heaps are on the heap stack, a warning will be produced.


RETURN VALUE

hppop returns 0 if the prior heap is restored and -1 if there are no currently pushed heaps.


IMPLEMENTATION

Each coprocess (including the implicit coprocess that represents the main program) has its own heap stack, which is maintained independently.


EXAMPLE

See the example for hpextract.


RELATED FUNCTIONS

hppush, hpcreate


SEE ALSO

"Memory Allocation Functions" in Chapter 2, "Function Categories" of the SAS/C Library Reference, Volume 1.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.