DragonFly users List (threaded) for 2006-06
Re: [OT] C pointers: BSD versus Linux?
:What I see in linux is that the two values are miles apart,
:but in *BSD they differ by only a few bytes. I *assume* this
:means that in *BSD, t is pointing to a valid memory location
:very close to d, whereas in linux t is pointing to some
:random number. Does this seem a reasonable idea?
:Thanks again for everyone's help.
Yes. Because the variables are not initialized, the contents of
the stack representing the variables is whatever happened to be on
If you are doing any serious programming I recommend always using:
Which will catch most common programming errors, such as using