home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung 2
/
Power-Programmierung CD 2 (Tewi)(1994).iso
/
c
/
library
/
dos
/
sound
/
nh10src
/
spawnle.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-12-14
|
358 b
|
22 lines
/* 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;
}