utils.c

来自「一个关于 RTP的例子」· C语言 代码 · 共 41 行

C
41
字号
/*******
**
** FILE INFO:
** project:	RTP_lib
** file:	Utils.c
** started on:	05/01/03
** started by:	Cedric Lacroix <lacroix_cedric@yahoo.com>
**
**
** TODO:
**
** BUGS:
**
** UPDATE INFO:
** updated on:	05/13/03
** updated by:	Cedric Lacroix <lacroix_cedric@yahoo.com>
**
********/


#include		<stdlib.h>
#include		<stdio.h>
#include		<time.h>
#include		"Types.h"


/**
 ** Random functions
 **/
int			Random_init(void)
{
	srand((unsigned)time( NULL ));
	return (0);
}


u_int32			Random32(int type)
{
	return rand();
}                               /* random32 */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?