aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12/cdebug_121.c
diff options
context:
space:
mode:
Diffstat (limited to 'Linux_C_12/cdebug_121.c')
-rw-r--r--Linux_C_12/cdebug_121.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/Linux_C_12/cdebug_121.c b/Linux_C_12/cdebug_121.c
new file mode 100644
index 0000000..9b4a438
--- /dev/null
+++ b/Linux_C_12/cdebug_121.c
@@ -0,0 +1,39 @@
+/********************************************************************************************
+ 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;
+}