aboutsummaryrefslogtreecommitdiff
path: root/iceys-utils.h
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-09-25 20:31:22 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-09-25 20:31:22 -0500
commita5e1191ad6c34636eb49c0ddaeb9af1bd5c07a2d (patch)
tree58c5dea3afcdc8b665004d3f4ebc6df222cf524b /iceys-utils.h
parenteffc9a1a4f4c6108ba14fe457ba1add547e86244 (diff)
made header file and made function names more sensibleHEADmain
Diffstat (limited to 'iceys-utils.h')
-rw-r--r--iceys-utils.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/iceys-utils.h b/iceys-utils.h
new file mode 100644
index 0000000..15ce86f
--- /dev/null
+++ b/iceys-utils.h
@@ -0,0 +1,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