?? testmain.c
字號(hào):
#include <stdio.h>#include <stdlib.h>//#include <unistd.h>#include <fcntl.h>int main(){ int fd; fd = open("/dev/sjacan0",O_RDWR); if(fd < 0) { perror("Open device failed.\n"); return fd; } printf("Open device success.\n"); scheme=scheme=sleep(1); if(close(fd) < 0) { perror("Close device failed.\n"); return -1; } printf("Close device success.\n"); return 0;}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -