otherlib.c
来自「Renesas(Hitachi SuperH)SH7708的UCOS2源码,uC」· C语言 代码 · 共 18 行
C
18 行
/*--------------------------------------------------------------------------*/
/* Initialization Routine for Other Library Function. */
/* (rand function and strok function) */
/*--------------------------------------------------------------------------*/
#include <stddef.h>
extern char *_s1ptr;
extern void srand ( unsigned int );
void _INIT_OTHERLIB ( void );
void _INIT_OTHERLIB ()
{
srand (1); /* Sets initial value when rand function is used */
_s1ptr = NULL; /* Initializes the pointer used in the strtok */
/* function */
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?