1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 21:36:46 +02:00

moved misc helper functions to separate file and removed redundant includes

This commit is contained in:
Jfreegman
2013-09-20 20:35:03 -04:00
parent ec6b37e09e
commit 89cb29afed
12 changed files with 131 additions and 118 deletions

18
src/misc_tools.h Normal file
View File

@ -0,0 +1,18 @@
/*
* Toxic -- Tox Curses Client
*/
/* convert a hex string to binary */
unsigned char *hex_string_to_bin(char hex_string[]);
/* get the current local time */
struct tm *get_time(void);
/* check that the string has one non-space character */
int string_is_empty(char *string);
/* convert wide characters to null terminated string */
uint8_t *wcs_to_char(wchar_t *string);
/* convert a wide char to null terminated string */
char *wc_to_char(wchar_t ch);