From 40f8ecde745d97b068e8706bac165c733870c26d Mon Sep 17 00:00:00 2001
From: "leo.harb" <leo.harb@etu-ge.ch>
Date: Tue, 24 Jan 2023 19:37:54 +0100
Subject: [PATCH] commit en retard mince...

---
 ex1/ex1.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/ex1/ex1.c b/ex1/ex1.c
index 0687cd1..f5144db 100644
--- a/ex1/ex1.c
+++ b/ex1/ex1.c
@@ -144,9 +144,9 @@ int main(){
     float temp1;
     char *p1 = string1;
     int cpt1 = 0;
-    while(sscanf(p, "%f%n", &temp1, &left) == 1) {
+    while(sscanf(p1, "%f%n", &temp1, &left) == 1) {
         values1[cpt1] = temp1;
-        p += left;
+        p1 += left;
         cpt1++;
     }
 
@@ -155,9 +155,9 @@ int main(){
     float temp2;
     char *p2 = string2;
     int cpt2 = 0;
-    while(sscanf(p, "%f%n", &temp2, &left) == 1) {
+    while(sscanf(p2, "%f%n", &temp2, &left) == 1) {
         values1[cpt1] = temp2;
-        p += left;
+        p2 += left;
         cpt1++;
     }
 
@@ -167,7 +167,9 @@ int main(){
     ll res = ll_create();
     
 
-    dll_print(&list);
-    dll_destroy(&list);
+    dll_print(&res);
+    dll_destroy(&list1);
+    dll_destroy(&list2);
+    dll_destroy(&res);
     return 0;
 }
\ No newline at end of file
-- 
GitLab