
12 Sep
2017
12 Sep
'17
3:14 p.m.
degski wrote:
The below works just fine for me, no header:
#include <iostream>
extern "C" void rand_s ( unsigned int* );
Something like that could probably work, but this is not the correct prototype. rand_s returns errno_t. If you try #define _CRT_RAND_S #include <stdlib.h> extern "C" void rand_s( unsigned int* ); you get an error. errno_t seems to be just a typedef for int though.