execve.c
来自「基于网络编程的例子」· C语言 代码 · 共 21 行
C
21 行
/* * execve.c - Illustrate execve */#include <unistd.h>#include <stdlib.h>#include <stdio.h>int main(void){ char *argv[] = {"/bin/ls", NULL}; if(execve("/bin/ls", argv, NULL) == -1) { perror("execve"); exit(EXIT_FAILURE); } puts("shouldn't get here"); exit(EXIT_SUCCESS);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?