Mail Archives: djgpp/1999/08/20/17:51:04
Campbell, Rolf [SKY:1U32:EXCH] wrote:
>
> Goh Yong Kwang wrote:
>
> > The functions, system(), spawn() and exec() are used to execute other programs
> > or commands. So what's the difference between them?
> >
> > When should I use system(), spawn() and exec()?
>
> You should only use 'exec' when you are writing a program for UNIX, and it is
> only in DJGPP for the purpose of compatability.
And even so is not very useful without `fork', which DJGPP doesn't have
at all. `system' is much more portable, so use it whenever practical.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -