hello.c
来自「此程序运行在Tornado环境中,里面包含了tornado入门的基本程序,也是V」· C语言 代码 · 共 31 行
C
31 行
/* hello.c -- hello "world" function */
#include "vxWorks.h"
#include "stdio.h"
#include "semLib.h"
#include "taskLib.h"
SEM_ID semM;
int hello(void)
{
printf("hello world!\n");
return OK;
}
void test(void)
{
semM = semMCreate(0);
}
int test1(void)
{
semTake(semM,-1);
printf(" take a semM \n");
semGive(semM);
return OK;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?