|
SWILIB API (SG)
|
Go to the source code of this file.
Functions | |
| void | SEQKILLER (void *data, void(*next_in_seq)(void *), void *data_to_kill) |
| Free memory in the sequence. | |
| void * | SEQKILLER_ADR () |
| Pointer to the SEQKILLER. | |
String utils | |
| int | StrToInt (const char *s, char **endp) |
| Convert string to int. | |
| uint32_t | HexToInt (char *s, uint32_t fallback) |
| Convert HEX-string to int. | |
| int | HexCharToInt (char c) |
| Convert HEX char to int. | |
| void | StrToHex (char *hex_out, const char *str, int len) |
| Convert string to int. | |
| void | GetLangMesIntoWS (int lgp_id, WSHDR *str) |
| Convert string to int. | |
Binary Configs (BCFG) | |
| int | BCFG_GetDefaultDisk (void) |
| Get default disk for BCFG configs. | |
| int | BCFG_LoadConfig (const char *config_file, void *config, uint32_t size) |
| Load .bcfg config from disk (structure) | |
| static int | BCFG_LoadConfigSection (const char *config_file, void *config_begin, void *config_end) |
| Load .bcfg config from disk (section) | |
| int | BCFG_SaveConfig (const char *config_file, const void *config, uint32_t size) |
| Save .bcfg config to disk (structure) | |
| static int | BCFG_SaveConfigSection (const char *config_file, const void *config_begin, const void *config_end) |
| Save .bcfg config to disk (section) | |
Base64 encoding/decoding | |
| int | Base64Encode (void *inbuf, int insize, void *outbuf, int outsize) |
| Encode binary data to the base64 string. | |
| int | Base64Decode (char *inbuf, int insize, void *outbuf, int outsize, char *_null, int *unk5) |
| Decode string to the binary data. | |
Math | |
| int | sdiv (int divisor, int dividend) |
| Signed int div. | |
| uint32_t | udiv (uint32_t divisor, uint32_t dividend) |
| Unsigned int div. | |
| int | DivBy10 (int dividend) |
| Signed int div by 10. | |