Do you have a question?
Please contact us via email, contact form or phone
+49-7243-2167-23 (head office, Germany) or directly your local contact.
Special note
This knowledge base is updated regularly. If you need an information and don't find it here, please don't hesitate to contact us! Of course, we're also to your disposal at the phone:
+49 7243 2167-0
VCRT 5 exec, exec1 and exec2 functions
What are the differences between exec, exec1 and exec2?
When exec() is used, the calling process is terminated (meaning, if the program was called from the shell, the shell is overwritten). With exec1() and exec2(), the launched process is run in parallel (like when a program is called with "&" in the shell). This means that the calling program no longer has to be loaded again when the called program terminates.
exec1() was the first function created for this "parallel mode", but only accepted 1 argument. exec2() now replaces it, and can accept two arguments.
All functions return the process ID.
See VCRT documentation for further explanations.







