/home/rays/src/opensrc/tesseract-ocr/cutil/cutil.h File Reference

#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 Documentation

#define _ARGS (  )     ()
#define CHARS_PER_LINE   500
#define FALSE   0
 
#define new_line (  )     tprintf("\n")
#define print_string ( str   )     printf ("%s\n", str)
#define strfree (  )     (free_string(s))
#define strsave (  ) 
Value:
((s) != NULL ?  \
   ((char*) strcpy (alloc_string(strlen(s)+1), s))  :  \
   (NULL))

Typedef Documentation

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)

Function Documentation

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 
)
Generated on Thu Feb 2 08:19:22 2012 for Tesseract by  doxygen 1.6.3