📄 execls.c
字号:
/* This program just shows how to use the exec system call to start a new program (in this case ls)*/#include <stdio.h>char *args[] = {"/bin/ls", NULL};/* If all goes well, execls will never return, since the program is replaced with ls*/void execls(void) { execv("/bin/ls",args); printf("I'm not printed\n");}int main(void) { execls(); return(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -