Using memcpy() to copy the address from one place to another solved the problem! Thanks PaulS ! I will also take a look at the suggestion PeterH provided. Thank you both for the input.
Using memcpy() to copy the address from one place to another solved the problem! Thanks PaulS ! I will also take a look at the suggestion PeterH provided. Thank you both for the input.