📄 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 + -