📄 test12.c
字号:
#include <stdio.h>#include <unistd.h>#include <string.h>#include <errno.h>int main(int argc, char **argv){ int return_code; //return_code = execl("/bin/ls", "/bin/ls", "-l", (char *) 0); //char *v[] = { "ls", NULL }; //char *v[] = { "./test13", NULL }; char *v[] = { "test13", NULL }; //return_code = execlp("ls1", "ls1", (char *) 0); return_code = execv("./test13", v); if (return_code < 0) { fprintf(stderr, "excel() failed: %s\n", strerror(errno)); } else { fprintf(stderr, "excel() successed.\n"); } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -