Yes, it helped. I modified the primkereso function to use two new references, and it works nicely.
Thank you for your time! On Friday, October 26, 2012 7:28:25 PM UTC+2, Richard Marton wrote: > > Hello! > > I wrote a void c++ function which uses the mpz_t type numbers and writes > it's output to stdout. > > void primkereso(int bitszam){ > > ... > > mpz_out_str(stdout, 10, prim); > } > > The problem is i want to store the prim variable outside of the custom > function. I have made and external mpz_t variable, and i want to > mpz_set(d,primkereso(16)); > Can i make this function return an mpz_t number? > > > > > I am trying to get the > -- 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/-/c3NmrVaeOt0J. To post to this group, send email to mpir-devel@googlegroups.com. To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.