-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutil.h
More file actions
28 lines (19 loc) · 736 Bytes
/
util.h
File metadata and controls
28 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef UI_H
#define UI_H
#include "popuset.h"
// Format a float as seconds or milliseconds in a string
const char * formatSeconds(float seconds);
// duplicate a string, but using new instead of malloc()
char * new_strdup(const char * input);
// Return time in miliseconds
const double time_ms();
// Return true if the given string is only whitespace and digits
bool is_number(const char * str);
// Print the level meter thingy that is so awesome and sooooooo unnecessary
void print_level_meter( float * buffer );
void gen_random_addr(char * addr, unsigned int max_len);
bool matchBeginnings(const char * x, const char * y);
void * socket_monitor_thread(void * ctx);
void squelch_stderr();
void restore_stderr();
#endif //UI_H