📄 sample.c
字号:
/* sample - example of shell-less application */#include "vxWorks.h"#include "stdio.h"#include "ioLib.h"#include "usrLib.h"#define BUF_SIZE (80)int sample(void) { char buf [BUF_SIZE]; int length; version(); printf ("\n\nWelcome to this stunning VxWorks application program\n\n"); FOREVER { printf ("Type something\n"); length = read (STD_IN, buf, sizeof(buf) - 1); if (length <= 1) continue; buf [length-1] = '\0'; printf ("You typed \"%s\"\n\n", buf); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -