array: New function reverse_array().
[pspp] / src / libpspp / array.h
index fbebd56835f0ba59bf4afc522e17f7240e7e1c50..5205be935bf2fa05ac08f5b262e07ae4a8749572 100644 (file)
@@ -247,5 +247,8 @@ void sort_heap (void *array, size_t count, size_t size,
 bool is_heap (const void *array, size_t count, size_t size,
              algo_compare_func *compare, const void *aux);
 
+/* Reverses the order of ARRAY, which contains COUNT elements of SIZE bytes
+   each. */
+void reverse_array (void *array, size_t count, size_t size);
 
 #endif /* algorithm.h */