/*

cc -ggdb t1.c && ./a.out
cl t1.c && t1.exe

------------------------------------------------------
with UTX:
cc -ggdb t1.c\
 ../ut/ut_utx_dummy.c ../ut/ut_txt.c ../ut/ut_TX.c ../ut/ut_umb.c ../ut/ut_umem.c ../ut/ut_txTab.c ../xa/xa_msg.c ../ut/ut_mem.c ../ut/ut_os_aix.c -ldl -lm
./a.out




*/
/*
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <time.h>
#include <sys/time.h>
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>  // toupper
#include <errno.h>


#ifdef _MSC_VER
#include "../xa/MS_Def1.h"
// #include <stdafx.h>
// #include <utility.h>
#include <malloc.h>
#else
#include <dlfcn.h>           // Unix: dlopen
#include <dirent.h>        // f. DIR ..
#include <sys/utsname.h>
#include <sys/time.h>
#include <unistd.h>          ///f. access, R_OK .. 
#endif


#include <stdarg.h>          // f ...
#include <time.h>
#include <signal.h>
#include <sys/types.h>       // f. S_ISDIR
#include <sys/stat.h>        // f. mkdir , stat


// for UTX:
#include "../ut/ut_TX.h"
#include "../ut/ut_types.h"      // FLT_32_MAX
#include "../ut/ut_os.h"


/// FilenamedelimiterChar
#ifdef _MSC_VER
#define  fnam_del '\\'
#define  fnam_del_s "\\"
#else
#define  fnam_del '/'
#define  fnam_del_s "/"
#endif


#define ERR_file_open 0
void MSG_STD_ERR (int i1, char *fmt, char *fn) {
  printf("MSG_STD_ERR %s\n", fn);
}

char AP_mod_iftyp;         // integer-filetyp of active model; eg Mtyp_DXF

#include "../ut/AP_types.h"     // Mtyp_*


// -----------------------------------------------------------
#define MEM_alloc_tmp(siz)\
 alloca(siz);\
 // if(siz >= SPC_MAX_STK) printf("*** ERR MEM_alloc_tmp |%s| %d\n",__func__,siz);\
 // fflush(stdout)


// ../xa/xa_mem.h
#define mem_cbuf1_SIZ 200000
char mem_cbuf1[mem_cbuf1_SIZ];

// ../xa/xa_ed_mem.h
#define  AP_SRCLN_BUFSIZ mem_cbuf1_SIZ   // 200000 ../xa/xa_mem.h
#define  AP_SRCLN_BUF__  mem_cbuf1





//============================================================
  int main (int argc, char *argv[]) {
//============================================================

  int     i1, nd, chrNr, *ia, rNr, rSiz, bNr;
  char    s2[400], fn[128], *p1;
  long    l1;
  double  d1, *da;



  // strcpy(s2,"Data/HausH1k.jpg");
  // strcpy(s2,"Data\\HausH1k.jpg");
  // strcpy(s2,"/a/bb/ccc/Data\\HausH1k.jpg");
  // UTX_find_strrchrn (s2, "/\\");


 d1 = 1.;

  s2[0] = '\0';
  UTX_add_fl_1uf (s2, d1);
  printf("|%s|\n",s2);



  return 0;
}



 
// EOF
