jonathan@jvc.UUCP (Jonathan Hue) (03/10/89)
I know this is a commonly asked question, but I've never seen the answer. I have a program which returns all of its dynamically allocated memory when run from the CLI, but loses ~50-120 bytes from run from the workbench. I found that if I do the following, all memory is returned: fclose(stdin); fclose(stdout); fclose(stderr); rbrk(); exit(0); My question is, is this dangerous (the rbrk())? I notice a lot of programs when run from workbench don't return all their memory. I'm using Lattice 5.02 (wb programs work, hurray!) -Jonathan uunet!jvc!jonathan