Skip to content
Extraits de code Groupes Projets
Valider 88a059f5 rédigé par Giovanna Stefanelli's avatar Giovanna Stefanelli
Parcourir les fichiers

Update fact.c

parent 2d05a946
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #10102 en échec
//
// 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);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter