Your problem starts here:
BigInt *convertArraytoLL(struct integer *p){
BigInt *tmp, *dubTmp;
int i;
dubTmp = malloc(sizeof(BigInt));
for (i = 0; i <= p->size; i++) {
...
Type: Posts; User: AndiPersti
Your problem starts here:
BigInt *convertArraytoLL(struct integer *p){
BigInt *tmp, *dubTmp;
int i;
dubTmp = malloc(sizeof(BigInt));
for (i = 0; i <= p->size; i++) {
...
//frees a linked list (still need to test)
void freeLinkedList(BigInt *p){
if(p->next) //error is occurring in this line
freeLinkedList(p->next);
...