?? read_simple_device.c
字號:
#include <stdio.h>#include <fcntl.h>#include "device_common.h"main(){ int fd,n; char data[16]; if((fd=open(SIMPLE_DEV, O_RDWR|O_SYNC))<0) { perror("open"); exit(-1); } /* just read to trigger the read-fops */ n = read(fd, &data, sizeof(data)); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -