GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#include"typedef.h"1/**************************************************************************\2@---------------------------------------------------------------------------3@---------------------------------------------------------------------------4@ FILE: init_bravais.c5@---------------------------------------------------------------------------6@---------------------------------------------------------------------------7@8\**************************************************************************/910/**************************************************************************\11@---------------------------------------------------------------------------12@ bravais_TYP *init_bravais(dim)13@ int dim;14@15@ returns a bravais_TYP 'B' with B->dim = dim16@ and all other pointers an integers in B are set to NULL resp. 017@ and B->divisors[i] = 0 for 0<= i < 10018@---------------------------------------------------------------------------19@20\**************************************************************************/212223bravais_TYP *init_bravais(dim)24int dim;25{26int i;27bravais_TYP *B;2829/* changed on 1/08/97 from malloc to calloc for paranoia reasons */30if( (B = (bravais_TYP *)calloc(1,sizeof(bravais_TYP))) == NULL)31{32printf("malloc of 'B' in 'init_bravais' failed\n");33exit(2);34}35B->dim = dim;36for(i=0;i<100;i++)37B->divisors[i] = 0;38B->order = 0;39B->gen_no = B->zentr_no = B->form_no = B->normal_no = B->cen_no = 0;40B->gen = NULL;41B->form = NULL;42B->zentr = NULL;43B->normal = NULL;44B->cen = NULL;45return(B);46}474849