Reorder functions list.
[TD_C.git] / TP_13 / exo2 / lib / coordinates.c
index fc5cb4f3ea50f3d2f7dcce179a672759ae7b7027..aeea617c66bf57c20eb9c9ef27a4a470906a16e9 100644 (file)
 
 #include "coordinates.h"
 
-void zero_coordinates(coordinates_t* coordinates_array) {
-
-    for (unsigned i = 0; i < MAX_COORDINATES; i++) {
-        coordinates_array[i] = set_coordinates(0, 0, 0);
-    }
-}
-
 coordinates_t set_coordinates(int y, int x, unsigned type) {
     coordinates_t new_coordinates;
 
@@ -34,6 +27,13 @@ coordinates_t set_coordinates(int y, int x, unsigned type) {
     return new_coordinates;
 }
 
+void zero_coordinates(coordinates_t* coordinates_array) {
+
+    for (unsigned i = 0; i < MAX_COORDINATES; i++) {
+        coordinates_array[i] = set_coordinates(0, 0, 0);
+    }
+}
+
 /* FIXME: Does it worth doing a coordinates_t get_coordinates(int y, int x, unsigned type); helper function? */
 /* Or a int get_coordinates_x(coordinates_t coordinates); helper function? */