aboutsummaryrefslogblamecommitdiff
path: root/Linux_C_12/cdebug_121.c
blob: 9b4a438c987570690d5ed37f31a54b31fb6bf29c (plain) (tree)





































                                                                                              
/********************************************************************************************
	Clean OS Windows library module version 1.2.1.
	This module is part of the Clean Object I/O library, version 1.2.1, 
	for the Windows platform.
********************************************************************************************/

/********************************************************************************************
	About this module:
	Routines useful for debugging. 
********************************************************************************************/
#include "cdebug_121.h"
#include "time.h"

int Rand (void)
{
	static int holdrand;
	static int randinited = 0;
    printf("Rand\n");

	if (!randinited)
	{
		holdrand = (int) 0; //GetTickCount ();
		randinited = -1;
	}

	holdrand = holdrand * 214013 + 2531011;

	return ((holdrand >> 16) & 0x7fff);
}

OS ConsolePrint (CLEAN_STRING cleanstr, OS os)
{
	char *cstr;
    printf("ConsolePrint\n");

	cstr = cstring (cleanstr);
	rprintf (cstr);
	return os;
}