📄 h0704.c
字号:
/* spawnl() and spawnle() example */
#include <process.h>
#include <stdio.h>
#include <conio.h>
void spawnl_example(void)
{
int result;
clrscr();
result = spawnl(P_WAIT, "bcc.exe", NULL);
if (result == -1)
{
perror("Error from spawnl");
exit(1);
}
}
void spawnle_example(void)
{
int result;
clrscr();
result = spawnle(P_WAIT, "bcc.exe", NULL, NULL);
if (result == -1)
{
perror("Error from spawnle");
exit(1);
}
}
int main(void)
{
spawnl_example();
spawnle_example();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -