StdCPtr BytCopy(StdCPtr bytes, long len) | copies 'len' bytes of byte array 'bytes'; allocs memory |
c_bool IsSpaceStr(c_string s) | whether string 's' is empty or only contains space characters |
size_t WCStrLen(wc_string ws) | number of wide characters in string 'ws' ( without the termination character ) |
wc_string SubWCStrCopy(wc_string str, long len) | copies 'len' wide characters of string 'str'; appends 0, allocs memory |
wc_string WCStrCopy(wc_string Str) | copies wide character string 'Str'; allocs memory |
c_string WCToStrCopy(wc_string wc) | copies wide character string 'wc' into a string; without conversion, allocs memory |
wc_string WCStrToLower(wc_string st) | converts all letters in wide character string 'st' to lower case |
wc_string WCStrToUpper(wc_string st) | converts all letters in wide character string 'st' to upper case |
c_string SubStrCopy(c_string str, long len) | copies 'len' characters of string 'str'; appends 0, allocs memory |
c_string StrCopy(c_string Str) | copies string 'Str'; allocs memory |
c_string StrToLower(c_string st) | converts all letters in string 'st' to lower case |
c_string StrToUpper(c_string st) | converts all letters in string 'st' to upper case |
StdCPtr* GetArgLst(va_list args) | variable arguments from list 'args The first argument contains the argument number ( len(args)-1 ). |
c_string GetSystemError(void) | system error message; allocs memory |
#define STD_CMD_NOWAIT 0 #define STD_CMD_WAIT_INIT 1 #define STD_CMD_WAIT 2
int runprg(c_string cmd, int cmdflg) | executes program 'cmd' cmdflg=STD_CMD_NOWAIT --> asynchron, non-blocking cmdflg=STD_CMD_WAIT_INIT --> waits for initialisation cmdflg=STD_CMD_WAIT --> synchron, blocking |
typedef StdCPtr (*PCFUN)();
StdCPtr apply_fun_portable(PCFUN f, int cnt, StdCPtr* args) | portable dynamic call of C-function 'f' with 'cnt' parameters in 'args' ( upto 9 parameters ) |
StdCPtr apply_fun(PCFUN f, int cnt, StdCPtr* args) | dynamic call of C-function 'f' with 'cnt' parameters in 'args' ( restricted to intel ) |
DL_Hdl | Abstract handle type |
#define DL_LOAD_LAZY 0
#if !defined( _WIN32 ) && !defined( MSDOS ) && ( !defined( HAVE_CONFIG_H ) || defined( HAVE_LIBDL ) ) #include <dlfcn.h> #define DL_LAZY RTLD_LAZY #define DL_NOW RTLD_NOW #define DL_BINDING_MASK RTLD_BINDING_MASK #define DL_GLOBAL RTLD_GLOBAL #define DL_LOCAL RTLD_LOCAL #else #include <windows.h> #define DL_LAZY 0 #define DL_NOW 0 #define DL_BINDING_MASK 0 #define DL_GLOBAL 0 #define DL_LOCAL 0 #endif
DL_Hdl DL_open(c_string dlname, int flag) | loads dll 'dlname' in mode 'flag' ( ERROR: NULL ) LINUX: flag=RTLD_LAZY|RTLD_NOW|-1=RTLD_NOW, MS: not used |
int DL_close(DL_Hdl dlhdl) | detaches dll 'dlhdl' ( SUCCESS: 0, ERROR: > 0 ) |
StdCPtr DL_symbol(DL_Hdl dlhdl, c_string symname) | address of symbol 'symname' within dll 'dlhdl' ( ERROR: NULL ) LINUX: function|data, MS: function |
c_string DL_error(void) | dll load error; allocs memory |
c_string UserName(void) | login name; allocs memory |