Chapter Contents

Previous

Next
pfree

pfree



Return an Allocated Element to a Storage Pool

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTION
EXAMPLE
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

#include <pool.h>

void pfree(POOL_t *p, void *elt);


DESCRIPTION

pfree returns a previously allocated element to a storage pool (created by the pool function). p is a pointer to the pool, and elt is a pointer to the element to be returned.


RETURN VALUE

pfree has no return value.


CAUTION

If the returned element is not allocated from the storage pool, the results are unpredictable.

You should not reference pool elements after the pool has been freed.


EXAMPLE

See the example for pool.


RELATED FUNCTIONS

free , palloc , pool ,


SEE ALSO


Chapter Contents

Previous

Next

Top of Page

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