On , Bryan Joyce (2:258/3.21@fidonet) wrote:
RS> exec() is part of the Posix.1 standard, spawn() is DOS/Win-only.
> So exec would be used for compatability on different platforms such as
> in UNIX etc?
Bryan...
Yes, but the portability is mostly an illusion in this case. Since Unix is
a multitasking operating system, exec() is most commonly used with fork(),
another Posix.1 function. DOS/Win16 have no equivalents to fork() and, IIRC,
even Win32 has no directly portable fork() function.
Other folks feel free to jump in and correct me if I'm wrong...
--- QM v1.00
---------------
* Origin: MicroFirm : Down to the C in chips (1:106/2000.6)
|