FILE_PTR fpr;
fpr = _mem_alloc_zero(4096);
fpr = fopen("c:\\LIMBIC.S19", "r");
fclose(fpr);
what does fclose do?, does it free the mem_alloc_zero(4096) ???
do I need to call _mem_free(fpr) ???
do I even need to call _mem_alloc_zero to allocate memory for the file pointer ???
Any comments are welcome
you don't need to call _mem_alloc_zero.
you don't need to call _mem_free(fpr) either.
refer to these files: io_fopen.c and io_fclose.c to understand "fopen" and "fclose"
or grab C book, read chapter about io/file etc.