📄 scope.c
字号:
#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/mman.h>#include <sys/stat.h>#include <fcntl.h>#include <signal.h>#include <rtai_shm.h>#include "parameters.h"static int end;static void endme(int dummy) { end=1; }int main (void){ struct data_str *data; signal(SIGINT, endme); data = rtai_malloc (nam2num(SHMNAM),1); while (!end) { printf(" Counter : %d Sine : %f Cosine : %f \n", data->indx_counter, data->sin_value, data->cos_value); } rtai_free (nam2num(SHMNAM), &data); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -