basic.%free

C Function/BASIC Program, Releases: AP/Unix

Frees memory.

Syntax

(void)%free( (char*)pointer)

Description

frees a block of memory allocated by a call to %malloc().
'pointer' is the pointer to the area of memory allocated by a previous call to %malloc().

Example

%free( (char*)ptr )

See Also

Command Name Type Description
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.cfunction Definition Declare a list of C functions.
basic.%malloc C Function Allocates memory.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.