From 88a059f5d58ddf4a68cf9171c447f5ff450c263c Mon Sep 17 00:00:00 2001 From: Giovanna Stefanelli <giovanna.stefanelli@student.uclouvain.be> Date: Thu, 14 May 2020 16:50:08 +0200 Subject: [PATCH] Update fact.c --- fact.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fact.c b/fact.c index ec6d12f..1c2941f 100644 --- a/fact.c +++ b/fact.c @@ -1,5 +1,5 @@ // -// Modified on 09/05/2020. +// Modified on 25/04/2020. // #include <errno.h> #include <sys/types.h> @@ -162,7 +162,7 @@ void *read_write() { } #define DEFAULT_NO_THREADS 2 -#define MAX_NO_THREADS 20 +#define MAX_NO_THREADS 40 // MAIN PROGRAMME int main (int argc, char *argv[]) { @@ -219,7 +219,7 @@ int main (int argc, char *argv[]) { */ // Open input and output files f.in = fopen(inputfile, "r"); - f.out = fopen(outputfile, "a+"); + f.out = fopen(outputfile, "w"); if ((f.in == NULL) || (f.out == NULL)) { printf("Incorrect input_file or output_file name\n"); exit(EXIT_FAILURE); -- GitLab