home *** CD-ROM | disk | FTP | other *** search
- /* spawnl() example */
-
- #include <process.h>
- #include <stdio.h>
- #include <conio.h>
-
- int main(void)
- {
- int result;
-
- puts ("spawning...");
- result = spawnlp(P_WAIT, "loadhigh c:\command", NULL);
- if (result == -1)
- {
- perror("Error from spawnl");
- exit(1);
- }
- puts ("back to the program... and exiting...");
- return 0;
- }
-
-