Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94112177
fr_cb_int.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 4, 00:30
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Dec 6, 00:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22709111
Attached To
R1448 Lenstool-HPC
fr_cb_int.c
View Options
/**********************************************************/
/* */
/* FUNCTION: free_cubic_int */
/* */
/* PURPOSE: Frees a cube of int allocated dynamically */
/* by alloc_cubic_int() */
/* */
/* INPUT: cube = pointer to matrix of pointers */
/* nbr_lin = number of lines */
/* nbr_col = number of columns */
/* */
/* VERSION: 1.0 October 2012 */
/* */
/* AUTHOR: Johan RICHARD */
/* */
/**********************************************************/
#include <stdlib.h>
#include "lt.h"
/**********************************************************/
void free_cubic_int(int ***cube,int nbr_lin, int nbr_col)
{
register int i, j;
for (i=0; i<nbr_lin; i++)
{
for(j=0; j<nbr_col; j++)
free(cube[i][j]);
free((int *) cube[i]);
}
free((int **) cube);
}
Event Timeline
Log In to Comment