DragonFly BSD
DragonFly users List (threaded) for 2006-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[OT] C pointers: BSD versus Linux?


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Wed, 31 May 2006 12:44:07 -0700

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*;
time(t);

Style 2:
time_t t;
time(&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!



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]