?? schar_io.c
字號:
#include <stdio.h>#include <fcntl.h>#include <sys/ioctl.h>#include "schar.h"int main(int argc, char *argv[]){ int fd = open("/dev/schar", O_RDWR); /* complain if the open failed */ if (fd == -1) { perror("open"); return 1; } /* complain if the ioctl call failed */ if (ioctl(fd, SCHAR_TOGGLE_DEBUG) == -1) { perror("ioctl"); return 2; } printf("Schar debug toggled\n"); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -