mirror of
https://github.com/Tha14/toxic.git
synced 2024-07-06 04:47:56 +02:00
24 lines
664 B
C
24 lines
664 B
C
/*
|
|
* 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);
|
|
|
|
/* Prints the time to given window */
|
|
void print_time(WINDOW *window);
|
|
|
|
/* Returns 1 if the string is empty, 0 otherwise */
|
|
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);
|
|
|
|
/* Returns true if connection has timed out, false otherwise */
|
|
bool timed_out(uint64_t timestamp, uint64_t timeout, uint64_t curtime); |