From 6cd7513501da78c2d6d216c4645c368c8ef56748 Mon Sep 17 00:00:00 2001 From: "quentin.perret" Date: Mon, 13 Jun 2022 17:35:00 +0200 Subject: [PATCH] remove file during traitment --- Code-C/main | Bin 24600 -> 24600 bytes Code-C/main.c | 2 -- Code-C/power.c | 1 + Code-C/queue.c | 4 +--- Code-C/queue.h | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Code-C/main b/Code-C/main index 942736ddaf9d6663f5a37cdb8b2c96efb169fe37..b7250cc5072f814d1b5c12a495bc4320d1294683 100755 GIT binary patch delta 2470 zcmZWrZEO_P8a}5mc0t;0k$&v9yW6Gqlgd_W=|?EAV8ir_R%wAEg2Y8*6jMJcaZSiywO(V-7#(uBb2eW#O;szsqP8?$VT~Rn zjUug`Q-zDj*(*Fj)c!vVcocXT^wn(!3CHskBSB#-d zOVfZXu~MjtrD~g0wF%Wdbi(Q6i|M>GF#l@=I#sC|n_<1j-vDF#CCh0dk+@wZ{y5#T9Re7y{1sN~3v42zbwc)L+_zGVE75ThH9Fsw z*}BYb71=%-awYI}bk&tUzfEX9mYRE|rbuW8gkww7pzQQBLUll@qNOTbsP@rncN)*2 z&F(Dz5q;>6PkwP6)sOYmsoF1U%Wo;F)@0zd3^B>iY0#ZC_w`uD4#Ek0>QAf0751Fl zdUNYtj$+HU-IAPyWOy1vZzE(pP6eJ^*CJG~Hf^|DHD3|wkI^}J@uFRp?-uRgJ{}2{EsM;qcwu5TD^_v#n3igX&o_OQ~YWLtI@wmrgOFLA( zZUA`)RqZSp)snle@GNYeB*K^=-?+w$$ho-l5+_GuFsK-r$L@yo3 ztWSj=yEBnTw@(uj=ncOa1=BKT&7K$v4x45RELxhzZT4-i!c$ky&0?&ji)+dt4W`{w zKUM0DMo6*xBf~H2aqW=k%3s-x6&-1O3X3ozn)$EurrE1(1Sc+CNw{egjT?xpqqq$s z?Ff2PMNgz>OnL2gYl6ll`e(YUehiN6|2Df~AdJ#ih99}J0_gz4Z;Ac^p5?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 rawDataQueue = queueGetNextE(rawDataQueue); fileName = queueGetTabChar(rawDataQueue); power(fileName,nRow,nCol,period,invTimeBandWidth); - /*remove(queueGetTabChar(rawDataQueue)); - rawDataQueue = queueRmFrstE(rawDataQueue);*/ } } } diff --git a/Code-C/power.c b/Code-C/power.c index 4b58106..7852277 100644 --- a/Code-C/power.c +++ b/Code-C/power.c @@ -26,6 +26,7 @@ bool power(char* rawDataFileName,int N , int M, double periode , double invTimeB powerCalculation(p,pw,N,M,periode,invTimeBandwidth); writePowerData(pw,8); freeArray(p,N); + remove(rawDataFileName); return true; } else{ diff --git a/Code-C/queue.c b/Code-C/queue.c index 3aff95f..432807e 100644 --- a/Code-C/queue.c +++ b/Code-C/queue.c @@ -150,12 +150,10 @@ Pqueue queueRmLastE(Pqueue elem){ * @param elem target to remove (the element need to be the first) * @return Pqueue the second element after remove first */ -Pqueue queueRmFrstE(Pqueue elem){ +void queueRmFrstE(Pqueue elem){ assert(elem); - Pqueue tmp = elem->pNextE; free(elem->tabChar); free(elem); - return tmp; } /** diff --git a/Code-C/queue.h b/Code-C/queue.h index 198710c..c2ec7a5 100644 --- a/Code-C/queue.h +++ b/Code-C/queue.h @@ -19,7 +19,7 @@ void queueAddLastQ(Pqueue elem, const char* str, int len); //Removers Pqueue queueRmLastE(Pqueue elem); -Pqueue queueRmFrstE(Pqueue elem); +void queueRmFrstE(Pqueue elem); Pqueue queueNextDelFrst(Pqueue elem); //print function