Skip to content
Snippets Groups Projects
Commit 9be0ff1d authored by BOURNAT Martin's avatar BOURNAT Martin
Browse files

Changements Mineurs

parent 091f95b8
No related branches found
No related tags found
No related merge requests found
...@@ -56,19 +56,9 @@ struct Segment* to_segment(const char* string) ...@@ -56,19 +56,9 @@ struct Segment* to_segment(const char* string)
{ {
char * partie1 = strtok(string, " "); char * partie1 = strtok(string, " ");
char * partie2 = strtok(NULL, " "); char * partie2 = strtok(NULL, " ");
char * partie3 = strtok(NULL, " ");
char * partie4 = strtok(NULL, " ");
char p1[64] = ""; struct Point* endpoint1 = to_point(partie1);
strcat(p1, partie1); struct Point* endpoint2 = to_point(partie2);
strcat(p1, partie2);
char p2[64] = "";
strcat(p2, partie3);
strcat(p2, partie4);
struct Point* endpoint1 = to_point(p1);
struct Point* endpoint2 = to_point(p2);
struct Segment *result; struct Segment *result;
if(point_precedes(endpoint1, endpoint2)) if(point_precedes(endpoint1, endpoint2))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment