X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_13%2Fexo2%2Flib%2Fcoordinates.c;h=fc5cb4f3ea50f3d2f7dcce179a672759ae7b7027;hp=ef80ba9d8b8bfe77da68c9d81fb73caddc2874e1;hb=9196247ea509a1b42d2954e3a6a0547cb8334ff6;hpb=0b8cccedf6a443a909844a480ab9b3c6908a073d diff --git a/TP_13/exo2/lib/coordinates.c b/TP_13/exo2/lib/coordinates.c index ef80ba9..fc5cb4f 100644 --- a/TP_13/exo2/lib/coordinates.c +++ b/TP_13/exo2/lib/coordinates.c @@ -37,7 +37,7 @@ coordinates_t set_coordinates(int y, int x, unsigned type) { /* 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? */ -/* the function do a lot of sanity checks before adding new board elements, +/* this function do a lot of sanity checks before adding new board elements, * hence the loop. moving the checks in the main loop is also possible. * for now, just branch in the main loop given this function error value returned. */ unsigned add_coordinates(coordinates_t new_coordinates, coordinates_t* coordinates_array, unsigned round) {