Mail Archives: djgpp/1993/08/17/07:28:08
I have a suite of programs developed under TurboC, which I have
transferred to GnuC, using go32. There is a slight problem that I have
observed.
When a call to system fails, then the value returned is 0. This can
happen for example if a TurboC main program executes
rc = system("gcc_prog ...");
and go32 is not in the PATH, or if the gcc_prog is interrupted by ^C.
In either case, system returns 0. Should it not return some non zero
value? (I don't know what UNIX does)
--
Peter King, Computing & Electrical Eng. JANET: pjbk AT uk DOT ac DOT hw DOT cee
Heriot-Watt University ARPA: pjbk AT cee DOT hw DOT ac DOT uk
Riccarton, Edinburgh EH14 4AS UUCP: ..!uknet!cee.hw.ac.uk!pjbk
Phone: (+44) 31 451 3433 Fax: (+44) 31 451 3431
- Raw text -