lxfree() Subroutine

Frees storage obtained by lxalloc().

Library:
LPEXAPI.H
Include File:
LPEXAPI.H

C Syntax

void lxfree(unsigned char *Pointer); 

Parameter

Pointer 
A valid address for the memory block.

Description

The lxfree subroutine is used to free any storage allocated by lxalloc().

Example

To allocate 1000 bytes of memory and then free them, type:

char *p;
p=lxalloc(1000);
if(!p) { 
  printf("out of memory");
  exit (2);
}..
. 
. 
lxfree(p)

Return Value

There is no return value.


Building External Commands Written in the C Language
lxalloc() Subroutine