gCAD3D 2.40
ut_utx_dummy.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Functions

char * OS_get_bin_dir ()
 
char * OS_get_bas_dir ()
 
char * OS_get_ico_dir ()
 
char * OS_get_doc_dir ()
 
char * OS_get_cfg_dir ()
 
char * OS_get_loc_dir ()
 
char * OS_get_tmp_dir ()
 
void GUI_Tip (char *txt)
 
int GUI_ck_version (int vMaj, int vMin)
 
int GUI_MsgBox (char *text)
 
int AP_errStat_set (int stat)
 
int UTI_round_i2b (int ii)
 
int UTI_round_b2i (int i1)
 

Variables

char AP_lang [4]
 
char APP_act_nam [128]
 

Function Documentation

char* OS_get_bin_dir ( )

OS_get_bin_dir returns path of executables, $gcad_dir_bin

char* OS_get_bas_dir ( )

OS_get_bas_dir returns path of ?

char* OS_get_ico_dir ( )

returns directory for icons (with closing '/') <gcad_dir_bin>icons/

char* OS_get_doc_dir ( )

OS_get_doc_dir returns path of docu

char* OS_get_cfg_dir ( )

returns confDir (with closing '/') <gcad_dir_local>xa/

char* OS_get_loc_dir ( )

returns confDir (with closing '/') <gcad_dir_local>xa/

char* OS_get_tmp_dir ( )

returns tempDir (with closing '/') <gcad_dir_local>tmp/

void GUI_Tip ( char *  txt)
int GUI_ck_version ( int  vMaj,
int  vMin 
)
int GUI_MsgBox ( char *  text)
int AP_errStat_set ( int  stat)
* raise error
* 0 = default = OK;
* 1 = Error - raise error; set AP_stat.errStat=1;
* 2 = DB_allocCDAT; rerun.
*
*
int UTI_round_i2b ( int  ii)
* UTI_round_i2b round integer to byte (back: UTI_round_b2i)
* 0,1 -> 0; 2 -> 1; 3,4 -> 2; 5-8 -> 3; 9-16 -> 4; 17-32 -> 5; ..
* Purpose: save Integers in a single byte, rounding up.
* UTI_round_i2b(20) -> 5; // all values from 17 to 32 give 5;
* UTI_round_b2i(5) -> 32
*
int UTI_round_b2i ( int  i1)
* UTI_round_b2i make integer from byte (back from UTI_round_i2b)
* 0 -> 0; 1 -> 2; 2 -> 4; 3 -> 8; 4 -> 16; 5 -> 32; .. 8=256; .. 10=1024 ..
*

Variable Documentation

char AP_lang[4]
char APP_act_nam[128]