an someone please help me with this. I have read the manual and I just dont get how to create a dynamic array.
normally id do -
Code:
int *p;
int elements;
elements = /*changes everytime*/
p = calloc(elements, sizeof(int));
but with the GMP im stuck with simple initialisation
Code:
void mpz_array_init (mpz t integer_array [], size t array_size,
mp size t fixed_num_bits )
i can't find anything explanitary about the args for above function.
Can anyone help, or do they have a bit of code they have used to corroborate the little i understand from the manual?
Muchos thanks
normally id do -
Code:
int *p;
int elements;
elements = /*changes everytime*/
p = calloc(elements, sizeof(int));
but with the GMP im stuck with simple initialisation
Code:
void mpz_array_init (mpz t integer_array [], size t array_size,
mp size t fixed_num_bits )
i can't find anything explanitary about the args for above function.
Can anyone help, or do they have a bit of code they have used to corroborate the little i understand from the manual?
Muchos thanks