Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93474909
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
Fri, Nov 29, 01:38
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Dec 1, 01:38 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22645483
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