Is there a thing like C's exit() for a D program? Is simply using C's function good enough?
Yes, it will work.Note that it does not gracefully shut down a process. Anything outside the process that is left in an intermediate state will not be cleaned up.
For instance, if you created a lock file, it will remain.But in general, it's safe to use, the OS will clean up the memory and open handles, etc.
-Steve