Go to the documentation of this file.
63 memset(data, 0,
sizeof(
SIF));
77 free((
char*)(data->
x1)); free((
char*)(data->
x2));
79 free((
char*)(data->
trues)); free((
char*)(data->
weights));
96 if(
SIF_TEST) printf(
"sifSetmem()\n");
99 if(frameNr<1)
return(0);
102 data->
x1=(
double*)calloc(frameNr,
sizeof(
double));
103 data->
x2=(
double*)calloc(frameNr,
sizeof(
double));
104 data->
prompts=(
double*)calloc(frameNr,
sizeof(
double));
105 data->
randoms=(
double*)calloc(frameNr,
sizeof(
double));
106 data->
trues=(
double*)calloc(frameNr,
sizeof(
double));
107 data->
weights=(
double*)calloc(frameNr,
sizeof(
double));
108 if(data->
x1==NULL || data->
x2==NULL || data->
prompts==NULL ||
110 strcpy(
siferrmsg,
"out of memory");
return(1);}