Advertisements

Did you verify rt and ifa are valid pointers? You can do something like
fprintf(stderr,"rt=%p ifa=%p\n",rt,ifa);
on most machines they will be nonzeros and even numbers, perhaps multiples
of four. (Most machines represent null with zeros. Many machines require
pointers to be aligned; even if not aligned pointers can still be more
efficient and preferred.)

You need to cast each of the pointers to void* to insure that fprintf
can process them correctly.
>on most machines they will be nonzeros and even numbers, perhaps multiples
>of four. (Most machines represent null with zeros. Many machines require
>pointers to be aligned; even if not aligned pointers can still be more
>efficient and preferred.)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!