From owner-freebsd-questions Wed Oct 16 02:33:23 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA29750 for questions-outgoing; Wed, 16 Oct 1996 02:33:23 -0700 (PDT) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA29729 for ; Wed, 16 Oct 1996 02:33:15 -0700 (PDT) Received: from sol1.gud.siemens.co.at (root@[10.1.143.100]) by zwei.siemens.at (8.7.5/8.7.3) with SMTP id LAA22218 for ; Wed, 16 Oct 1996 11:31:10 +0200 (MET DST) Received: from ws2301.gud.siemens.co.at by sol1.gud.siemens.co.at with smtp (Smail3.1.28.1 #7 for ) id m0vDSKw-000216C; Wed, 16 Oct 96 11:32 MET DST Received: by ws2301.gud.siemens.co.at (1.37.109.16/1.37) id AA212218338; Wed, 16 Oct 1996 11:32:18 +0200 From: "Hr.Ladavac" Message-Id: <199610160932.AA212218338@ws2301.gud.siemens.co.at> Subject: Re: interpretation? To: kline@tera.com (Gary Kline) Date: Wed, 16 Oct 1996 11:32:18 +0200 (MESZ) Cc: freebsd-questions@freebsd.org In-Reply-To: <199610160045.RAA19446@athena.tera.com> from "Gary Kline" at Oct 15, 96 05:45:47 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk E-mail message from Gary Kline contained: > > Can any resident C wizard interpret this parameter definition for me? > > > localtime(const time_t * const timep) a function (localtime) that takes one parameter (timep) which is a pointer to time_t. The function will not (is not allowed to) change neither the pointer (i.e. to where it points) nor the value stored at the address pointed to. > > And, is there a simpler way of saying the same thing? time_t is > a long int. Thanks for any lucid translation.... Wrong. time_t is time_t, an opaque type. I don't even think that there is a requirement that time_t be integral; as far as your program is concerned, it could just as easily be an array of char or double. I wish the people used thingy_t's more often; it makes porting a breeze. /Marino > > gary kline > >