Traitement-signal-plantes/C-Script/newFileData.c

18 lines
394 B
C
Raw Normal View History

2022-05-30 18:01:28 +02:00
#include "main.h"
void newFile(){
char buffer[256];
for(int i = 0; i < nRow; i++){
fgets(buffer , sizeof buffer , stdin);
}
while(1){
if(!fgets(buffer,sizeof buffer , stdin)) break;
fprintf(stdin,"%s\n",buffer);
}
for(int i = 0; i < nRow; i++){
fprintf(stdin,"\n");
}
}
int main(int argc , char** argv){
newFile();
}