From 791deb135e9450de31293cabb0b6401d82987cfd Mon Sep 17 00:00:00 2001 From: Baptiste Date: Mon, 9 Dec 2024 13:34:47 +0100 Subject: [PATCH] fix : nom fichier --- .gitignore | 2 +- Makefile | 4 ++-- src/ftest.ml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4a6006e..171512f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ _build/ outfile -outfile2 +graphdepart *~ *.exe diff --git a/Makefile b/Makefile index dc552e0..6437c09 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,10 @@ edit: demo: build @echo "\n ⚡ EXECUTING ⚡\n" - ./ftest.exe graphs/${graph} $(src) $(dst) outfile outfile2 + ./ftest.exe graphs/${graph} $(src) $(dst) outfile graphdepart @echo "\n 🥁 RESULT (content of outfile) 🥁\n" @cat outfile - make dot graphdot="outfile2" + make dot graphdot="graphdepart" make dot graphdot="outfile" clean: find -L . -name "*~" -delete diff --git a/src/ftest.ml b/src/ftest.ml index f78ac98..c0bb25a 100644 --- a/src/ftest.ml +++ b/src/ftest.ml @@ -12,7 +12,7 @@ let rec mainloop graph p1 p2 fl= let () = (* Check the number of command-line arguments *) - if Array.length Sys.argv <> 5 then + if Array.length Sys.argv <> 6 then begin Printf.printf "\n ✻ Usage: %s infile source sink outfile\n\n%s%!" Sys.argv.(0)