aboutsummaryrefslogtreecommitdiff
path: root/iceys-utils.h
blob: 15ce86fcb48d858b4c2e17fe0f02ebf53c7dd90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef iceys_utils_h
#define iceys_utils_h


float map(float value, float start1, float stop1, float start2, float stop2);

// remove all strings in str that match sub
char *str_remove_all(char *str, const char *sub);

// look for character eraser and delete everything after it putting it in str2
void str_before_nth(char *str, char *str2, char eraser, int found_count);

// execute command into buffer
int execret(char *return_buffer, char *command);

// execute command into array of buffers
int execretarr(char **return_arr, char *command);
#endif