system() always returns 0?

Earl H. Kinmonth ked at garnet.berkeley.edu
Thu Jan 26 15:59:19 AEST 1989


In article <782 at hawkmoon.MN.ORG> det at hawkmoon.MN.ORG (Derek E. Terveer) writes:
>Has anyone encountered a problem with the Microsoft C 5.0 compiler always
>returning a 0 from the system() call, no matter what the actual command
>executed by system() returns?

The same brain dead result occurs with the Turbo C system call.  Presumably
the problem is in command.com.  I wrote my own system() using spawn to get
around this.

Remember, you don't get to be a multi-billion dollar company by doing this
for the conveience of users.



More information about the Comp.lang.c mailing list