diff --git a/Labgen/a.out b/Labgen/a.out index ec9f63aae8488934de4dca48253c6242c673237c..03664cb5a050426a099699ef54a90a08cef28091 100755 Binary files a/Labgen/a.out and b/Labgen/a.out differ diff --git a/Labgen/labgen.c b/Labgen/labgen.c index 4f68128b645c105f86844ffd0913e398a79aca86..1f88ae02fb5899fff06cdbe15b1e4c06456913a7 100644 --- a/Labgen/labgen.c +++ b/Labgen/labgen.c @@ -2,16 +2,7 @@ #include<stdio.h> #include<stdlib.h> #include<string.h> -char DIR[2] = {'N','SW'}; -char* DIR = calloc(8,sizeof(char)); -DIR[0] = "N"; -DIR[1] = "NE"; -DIR[2] = "E"; -DIR[3] = "SE"; -DIR[4] = "S"; -DIR[5] = "SW"; -DIR[6] = "W"; -DIR[7] = "NW"; +char DIR[8][3] = {"N","NE","E","SE","S","SW","W","NW"}; Point size; /*int in,out;*/ @@ -155,12 +146,6 @@ Point** init_tab(Point size){ return res; } -char* concat_string(char *s1,char *s2) { - char *s3[100]; - strcat(s3,s1); - strcat(s3,s2); - return s3; -} /* Vérifie que deux points sont identiques * Si égaux retourne 1, sinon retourne 0 */