pinosaur
/
taskasaur.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
subwin problems
[taskasaur.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index
a649239
..
f6f719a
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-47,4
+47,17
@@
wrap_text(char* str, int max_width, int* lines)
}
+/* array stuff */
+int
+ar_swap_item(void** arr, int src_index, int dest_index)
+{
+ void* temp;
+
+ temp = arr[dest_index];
+ arr[dest_index] = arr[src_index];
+ arr[src_index] = temp;
+
+ return 0;
+}
+