Clearing the Contents of a Memory File

When you no longer need the contents of a memory file, you can free the memory allocated to hold the contents with the memory file clear function, mf_clr():

void mf_clr(mfp)

MFILEPTR mfp;        /* Pointer to memory file to clear        */

Function mf_clr() clears a memory file by returning it to an empty state. Memory allocated for all filled rows is freed. The empty file remains in existence, ready to be filled again.


Home Contents Previous Next