?? readproc.c
字號:
#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdlib.h>int main(){ /* int procfd; char buf[4000]; if ((procfd = open("/proc/modules",O_RDONLY)) < 0) perror("read proc failed"); printf("buf:\n %s\n",buf);*/ if (system("cat /proc/modules > abc") < 0) perror("system failed"); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -