#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.
Defines | |
#define | FALSE 0 |
#define | CHARS_PER_LINE 500 |
#define | _ARGS(s) () |
#define | new_line() tprintf("\n") |
#define | print_string(str) printf ("%s\n", str) |
#define | strfree(s) (free_string(s)) |
#define | strsave(s) |
Typedefs | |
typedef void(* | void_proc )(...) |
typedef void *void_star_proc | _ARGS ((...)) |
typedef int(* | int_void )(void) |
typedef void(* | void_void )(void) |
typedef int(* | int_compare )(void *, void *) |
typedef void(* | void_dest )(void *) |
Functions | |
long | long_rand (long limit) |
FILE * | open_file (const char *filename, const char *mode) |
bool | exists_file (const char *filename) |
Check whether the file exists. |
#define _ARGS | ( | s | ) | () |
#define CHARS_PER_LINE 500 |
#define FALSE 0 |
#define new_line | ( | ) | tprintf("\n") |
#define print_string | ( | str | ) | printf ("%s\n", str) |
#define strfree | ( | s | ) | (free_string(s)) |
#define strsave | ( | s | ) |
((s) != NULL ? \ ((char*) strcpy (alloc_string(strlen(s)+1), s)) : \ (NULL))
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.
long long_rand | ( | long | limit | ) |
FILE* open_file | ( | const char * | filename, | |
const char * | mode | |||
) |