Skip to content
Snippets Groups Projects
Commit 40f8ecde authored by leo.harb's avatar leo.harb
Browse files

commit en retard

mince...
parent f0bea494
No related branches found
No related tags found
No related merge requests found
...@@ -144,9 +144,9 @@ int main(){ ...@@ -144,9 +144,9 @@ int main(){
float temp1; float temp1;
char *p1 = string1; char *p1 = string1;
int cpt1 = 0; int cpt1 = 0;
while(sscanf(p, "%f%n", &temp1, &left) == 1) { while(sscanf(p1, "%f%n", &temp1, &left) == 1) {
values1[cpt1] = temp1; values1[cpt1] = temp1;
p += left; p1 += left;
cpt1++; cpt1++;
} }
...@@ -155,9 +155,9 @@ int main(){ ...@@ -155,9 +155,9 @@ int main(){
float temp2; float temp2;
char *p2 = string2; char *p2 = string2;
int cpt2 = 0; int cpt2 = 0;
while(sscanf(p, "%f%n", &temp2, &left) == 1) { while(sscanf(p2, "%f%n", &temp2, &left) == 1) {
values1[cpt1] = temp2; values1[cpt1] = temp2;
p += left; p2 += left;
cpt1++; cpt1++;
} }
...@@ -167,7 +167,9 @@ int main(){ ...@@ -167,7 +167,9 @@ int main(){
ll res = ll_create(); ll res = ll_create();
dll_print(&list); dll_print(&res);
dll_destroy(&list); dll_destroy(&list1);
dll_destroy(&list2);
dll_destroy(&res);
return 0; return 0;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment