ReactOS 0.4.16-dev-2473-gb34a1f1
rand_s.c File Reference
#include <stdlib.h>
Include dependency graph for rand_s.c:

Go to the source code of this file.

Functions

errno_t __cdecl rand_s (_Out_ unsigned int *RandomValue)
 

Variables

void__imp_rand_s = rand_s
 

Function Documentation

◆ rand_s()

errno_t __cdecl rand_s ( _Out_ unsigned int RandomValue)

Definition at line 10 of file rand_s.c.

11{
12 if (!RandomValue)
13 return EINVAL;
14
15 *RandomValue = rand();
16 return 0;
17}
#define EINVAL
Definition: errno.h:44
_ACRTIMP int __cdecl rand(void)
Definition: misc.c:59

Variable Documentation

◆ __imp_rand_s

void* __imp_rand_s = rand_s

Definition at line 22 of file rand_s.c.