【发布时间】:2012-11-24 19:47:55
【问题描述】:
ubuntu 下的 exec() 函数有问题。 有没有可能回到主程序?
示例:
printf("Some instructions at beginning\n");
execlp("ls","ls", "-l", NULL);
// i want to continue this program after exec and see the text below
printf("Other instructions\n");
【问题讨论】: