C Interview Questions and Answers


How do I get an accurate error status return from system on MS-DOS?

You can't; COMMAND.COM doesn't tend to provide one. If you don't
need COMMAND.COM's services (i.e. if you're just trying to invoke a simple
program, without I/O redirection and such) try one of the spawn routines, instead.

Posted by:Richards