modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / helpers.h
blob2a7460edb209535d547a3abd9dc16e35b46ab845
1 #ifndef HELPERS_H
2 #define HELPERS_H
4 #ifndef CONFIG
5 #define CONFIG "config.h"
6 #endif // CONFIG
7 #include CONFIG
9 #include <stdint.h>
10 #include "types.h"
12 #define GUID_LE 0
13 #define GUID_BE 1
14 #define GUID_SWAP 2
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);
18 void optReset(void);
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);
34 #endif // HELPERS_H