23 if ( n <= 0 || dim <= 0 )
return(NULL);
25 b = (
void*)malloc( n *
sizeof(
double* )
26 + n * dim *
sizeof( double ) );
27 if ( b == (
void *)NULL )
return( (
void *)NULL );
29 dd = list = (
double **)b;
33 for (i=0; i<n; i++, d+=dim ) list[i] = d;
45 if ( n <= 0 )
return(NULL);
49 if ( b == (
void *)NULL )
return( (
void *)NULL );
52 for ( i=0; i<n; i++ ) {
71 if ( list->
n >= list->
nalloc ) {
88 list->
seg[list->
n] = *s;
These are some container definitions.
double const * extremity2
APPROXMVBB_EXPORT int _AddSegmentToList(TypeSegment *s, TypeListOfSegments *list)
APPROXMVBB_EXPORT void * _AllocateListOfPoints(const int n, const int dim)
double const * extremity1
APPROXMVBB_EXPORT void * _AllocateListOfSegments(const int n)