gCAD3D 2.40
doxy_help1.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <stdarg.h>
#include <sys/stat.h>

Functions

void UTX_CleanCR (char *string)
 =========================================================== More...
 
long OS_FilSiz (char *filnam)
 
char ** UTX_wTab_file (char *memspc, int memSiz, char *fnam)
 
int MEM_get_file (char *txbuf, long *fSiz, char *fnam)
 
void TX_Print (char *txt,...)
 
int TX_Error (char *txt,...)
 
int main (int paranz, char **argv)
 
int do_dirs1 (FILE *fpo)
 
int do_ck_files (char *actDir)
 
int do_files1 (FILE *fpo, char *actDir)
 
int getFileInfo (char *sInfo, char *fnam)
 
int do_files_ (FILE *fpo, char *sDir)
 
int OS_dir_scan_ (char *cbuf, int *iNr)
 
int UTX_strcmp_right (char *string, char *text)
 
int UTX_wTab_strg (char **wTab, int wSiz, char *sTxt)
 
int UTX_str_file (char *txbuf, long *fSiz, char *fnam)
 

Variables

int dNr
 
int fNr
 
char * dList
 
char * fList
 
char ** fTab
 
char ** dTab
 
char * sOut2Src
 

Function Documentation

void UTX_CleanCR ( char *  string)

===========================================================

=========================================================== UTX_CleanCR Delete Blanks, CR's u. LF's am Ende. Ersetzung von Blanks, Carriage Returns und Linefeeds durch Nullzeichen von hinten nach vorne bis zum ersten von diesen verschiedenen Zeichen.

long OS_FilSiz ( char *  filnam)

OS_FilSiz returns filesize in bytes

char** UTX_wTab_file ( char *  memspc,
int  memSiz,
char *  fnam 
)
* make table of words from file. End of List is NULL.
* Input:
* memspc, memSiz where to save file and table. No reallocate !
*
int MEM_get_file ( char *  txbuf,
long *  fSiz,
char *  fnam 
)
* MEM_get_file read file -> mem
* Input:
* fSiz must have exact filesize; see OS_FilSiz.
* fnam file to copy -> txbuf
* Output:
* txbuf must have size *fSiz+1
* See UTX_str_file()
*
void TX_Print ( char *  txt,
  ... 
)
int TX_Error ( char *  txt,
  ... 
)
int main ( int  paranz,
char **  argv 
)
int do_dirs1 ( FILE *  fpo)
int do_ck_files ( char *  actDir)
int do_files1 ( FILE *  fpo,
char *  actDir 
)
int getFileInfo ( char *  sInfo,
char *  fnam 
)
int do_files_ ( FILE *  fpo,
char *  sDir 
)
int OS_dir_scan_ ( char *  cbuf,
int *  iNr 
)
* scan directory
* iNr = 0: init suche; zu scannender Pfad ist cbuf.
* iNr > 0: cbuf ist next found file; do not change iNr! (Filename ohne Path !)
* iNr < 0; kein weiteres File found; directory closed.
*
int UTX_strcmp_right ( char *  string,
char *  text 
)
* UTX_strcmp_right check if string1 ends with string2
* RetCode: 0=equal; else=notEqual.
*
int UTX_wTab_strg ( char **  wTab,
int  wSiz,
char *  sTxt 
)
int UTX_str_file ( char *  txbuf,
long *  fSiz,
char *  fnam 
)
* UTX_str_file read file -> string; remove ending '\n'
* fSiz must have exact filesize; see OS_FilSiz.
* See MEM_get_file()
*

Variable Documentation

int dNr
int fNr
char* dList
char * fList
char ** fTab
char ** dTab
char * sOut2Src