You can pass the mpz_t variable as a parameter to your function rather
than define it internally. The mpz_t type is set up to essentially
pass by reference, so any modifications you make inside the function
are also available outside it.
void primkereso(int bitszam, mpz_t prim){
...
mpz_out_str(stdout, 10, prim);
}
....
mpz_t prim;
mpz_init(prim);
primkereso(123, prim);
Does this answer your question?
Bill.
> --
> You received this message because you are subscribed to the Google Groups
> "mpir-devel" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/mpir-devel/-/vjZBNPGG0w0J.
> To post to this group, send email to
mpir-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
mpir-devel+...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/mpir-devel?hl=en.