First thing....Your function call "listPrimeExperiment()" where does it save/pass the address of the linkedlist? What I see is two local variables that don't pass back the addresses of the the linked list....So how can you access these unknown values?
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
You want:
(*randomcur)->value = generateRandom(j,d);
because
*randomcur->value = generateRandom(j,d);
is the same as
*(randomcur->value) = generateRandom(j,d);
Martin B
Junior Poster in Training
60 posts since Oct 2010
Reputation Points: 14
Solved Threads: 6