I'm using the NTL library to implement my code and I have to ZZ number which I have to convert to binary then take a substring from it and convert that substring into decimal. How can I do that?
ZZ N;
unsigned char pp[200];
BytesFromZZ(pp,N,NumBits(N));
The above code is giving me this error: "Segmentation fault (core dumped)"
EDIT : Above code is working now but instead of giving octal string it is returning garbage values.