1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| ...
printf("LABEL_MIN\t%d\n",nLabelMin);
printf("LABEL_MAX\t%d\n",nLabelMax);
for(n=nLabelMin;n<nLabelMax+1;n++)
{
fprintf(stderr,"n=%d\t",n);
printf("Label %d",n);
printf("x = %d",x);
printf("y = %d",y);
printf("z = %d",z);
sprintf(num_fichier,"%d",n);
fprintf(stderr,"num_fichier = %s\t",num_fichier);
strcpy(nom_temp,path_name); //path_name est récupéré en amont du prog
fprintf(stderr,"nom_temp = %s\t",nom_temp);
strcat(nom_temp,"VolLabel");
fprintf(stderr,"nom_temp = %s\t",nom_temp);
strncat(nom_temp,num_fichier,10);
fprintf(stderr,"nom_temp = %s\t",nom_temp);
printf("fichier cree : %s.acr",nom_temp);
....
strcpy(nom_temp,"");
} |
Partager