Tesseract 3.01
/data/source/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 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 (   s)    ()
#define CHARS_PER_LINE   500
#define new_line ( )    tprintf("\n")
#define print_string (   str)    printf ("%s\n", str)
#define strfree (   s)    (free_string(s))
#define strsave (   s)
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 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines