#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "host.h"
#include "tprintf.h"
#include "cutil_class.h"
Go to the source code of this file.
#define CHARS_PER_LINE 500 |
#define print_string |
( |
|
str | ) |
printf ("%s\n", str) |
Value:
char * alloc_string(inT32 count)
Definition at line 111 of file cutil.h.
typedef void* void_star_proc _ARGS((...)) |
typedef int(* int_compare)(void *, void *) |
typedef int(* int_void)(void) |
typedef void(* void_dest)(void *) |
typedef void(* void_proc)(...) |
typedef void(* void_void)(void) |
bool exists_file |
( |
const char * |
filename | ) |
|
Check whether the file exists.
Definition at line 92 of file cutil.cpp.
long long_rand |
( |
long |
limit | ) |
|
Definition at line 56 of file cutil.cpp.
57 #if RAND_MAX < 0x1000000
61 num = (long) rand () << 16;
62 num |= rand () & 0xffff;
64 long result = num % limit;
70 return (
long)((double)limit * rand()/(RAND_MAX + 1.0));
FILE* open_file |
( |
const char * |
filename, |
|
|
const char * |
mode |
|
) |
| |