Displaying 1 result from an estimated 1 matches for "plots_ptr".
Did you mean:
plants_ptr
2004 Nov 29
1
data is getting corrupted
...0" ) );
if( s_ptr->age <= 0 )
{
s_ptr->age = 0;
}
if( s_ptr->sampled_month <= 0 )
{
s_ptr->sampled_month = 0;
}
/* build the plots vector */
s_ptr->n_points = asInteger( get_list_element( sample, "n.points" ) );
s_ptr->plots_ptr = (struct PLOT_RECORD*)calloc(
s_ptr->n_points, sizeof( struct PLOT_RECORD ) );
/* s_ptr->plots_ptr = (struct PLOT_RECORD*)Calloc( */
/* s_ptr->n_points, struct PLOT_RECORD ); */
plot_list = get_list_element( sample, "plots" );
PROTECT( plot_list = AS_LIST( plot_li...