Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
518 B
3
Indexable
Never
void write_lightning_intensity(float** lightning_intensity , FILE* lightning_intensity_file , const char* input_file){

    if (lightning_intensity_file == NULL) {
        abort_("[write_lightning_intensity] File * is NULL");
    }

    for (int i = 0 ; i < height ; i++){
        for (int j = 0 ; j < width ; j++){
            fprintf(lightning_intensity_file , "%f ", lightning_intensity[j][i]);
        }
        fprintf(lightning_intensity_file , "\n");
    }

    fclose(lightning_intensity_file);
}