Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rochester!rocksanne!sunybcs!kitty!baylor!peter From: peter@baylor.UUCP (Peter da Silva) Newsgroups: net.lang.c Subject: Re: Re: ANSI C. Message-ID: <618@baylor.UUCP> Date: Sat, 18-Jan-86 11:34:35 EST Article-I.D.: baylor.618 Posted: Sat Jan 18 11:34:35 1986 Date-Received: Tue, 21-Jan-86 01:00:25 EST References: <3502@brl-tgr.ARPA> Organization: The Power Elite, Houston, TX Lines: 17 > difftime() accepts time_t arguments but returns a double. What's wrong with returning a long? What's wrong with having a function: long seconds(time) time_t time; Really much more generally useful, you know. But, mainly, returning a double means loading in the floating point package. On a lot of machines doing any floating point arithmetic in a program adds quite a bit of overhead. Returning a long would be much more reasonable. -- -- Peter da Silva -- UUCP: ...!shell!{baylor,graffiti}!peter; MCI: PDASILVA; CIS: 70216,1076