Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.sources.bugs Subject: Re: shar Keywords: printf word size null pointer Message-ID: <7098@brl-smoke.ARPA> Date: 15 Jan 88 14:07:21 GMT References: <965@ssc.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <965@ssc.UUCP> kent@ssc.UUCP (Kent) writes: -Somebody elsewhere (in comp.lang.c, maybe) was annoyed about types -like time_t, which pretend to improve portability via data hiding, but -actually make a mess, since we need to know the underlying type -anyway. For printf purposes, so long as it's known to be an integral type, simply always cast the argument to long and use %ld format.