5 #define CONFIG "config.h"
16 BOOL
stringToInt(const char *const szValue
, const unsigned int min
, const unsigned int max
, unsigned int *const value
);
17 unsigned int getOptionArgumentInt(const char o
, const unsigned int min
, const unsigned int max
);
19 char* win_strerror(const int message
);
20 int ucs2_to_utf8_char (const WCHAR ucs2_le
, char *utf8
);
21 size_t utf8_to_ucs2(WCHAR
* const ucs2_le
, const char* const utf8
, const size_t maxucs2
, const size_t maxutf8
);
22 WCHAR
utf8_to_ucs2_char (const unsigned char * input
, const unsigned char ** end_ptr
);
23 BOOL
ucs2_to_utf8(const WCHAR
* const ucs2_le
, char* utf8
, size_t maxucs2
, size_t maxutf8
);
24 int_fast8_t string2Uuid(const char *const restrict input
, GUID
*const restrict guid
);
25 void randomNumberInit();
26 void LEGUID(GUID
*const restrict result
, const GUID
* const restrict guid
);
27 void parseAddress(char *const addr
, char** szHost
, char** szPort
);
28 __noreturn
void OutOfMemory(void);
29 void* vlmcsd_malloc(size_t len
);
30 void hex2bin(BYTE
*const bin
, const char *hex
, const size_t maxbin
);
31 __pure BOOL
getArgumentBool(int_fast8_t *result
, const char *const argument
);