[OT] C pointers: BSD versus Linux?

walt wa1ter at myrealbox.com
Wed May 31 12:44:07 PDT 2006

Hi compiler/OS gurus,

Please consider this trivial fragment of c code which I've
written in two different styles:

Style 1:
time_t t*;

Style 2:
time_t t;

My puzzle is this:  on *BSD these two different styles work
identically -- but on my linux boxes Style 1 produces a
run-time error, while Style 2 works as expected.

Anyone here know why this difference?

Thanks for any clues!

More information about the Users mailing list