GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#include "typedef.h"1#include "getput.h"2#include "datei.h"3#include "idem.h"45/***************************************************************************6@7@---------------------------------------------------------------------------8@9@ FILE: brav_from_datei.c10@11@---------------------------------------------------------------------------12@13****************************************************************************/141516/***************************************************************************17@18@---------------------------------------------------------------------------19@20@ bravais_TYP *brav_from_datei(char *symb,int almost,int zclass)21@22@ Reads a single bravais group from the catalog.23@ The symbol, the number almost and zclass are exactly as in the24@ standalone Datei resp. Bravais_catalog25@26@---------------------------------------------------------------------------27@28****************************************************************************/29bravais_TYP *brav_from_datei(char *symb,int almost,int zclass)30{3132bravais_TYP *RES;3334symbol_out *S;3536matrix_TYP *X;3738char *file;3940int i=1;4142/* initialize */43S = read_symbol_from_string(symb);44get_zentr(S);4546while (i<almost){47/* get the next almost decomposable group */48i++;49file = S->fn;50free_bravais(S->grp);51free(S);52S = get_symbol(file);53if (file != NULL) free(file);54}555657if (zclass == 1){58RES = S->grp;59}60else{61RES = Z_class(S->grp,S->grp->zentr[zclass-2]);62free_bravais(S->grp);63}6465if (S->fn != NULL) free(S->fn);66free(S);6768return RES;6970}71727374