From owner-freebsd-current Mon Mar 13 18:54:50 2000 Delivered-To: freebsd-current@freebsd.org Received: from screech.weirdnoise.com (209-128-78-198.bayarea.net [209.128.78.198]) by hub.freebsd.org (Postfix) with ESMTP id 6C7EB37B5D8 for ; Mon, 13 Mar 2000 18:54:46 -0800 (PST) (envelope-from edhall@screech.weirdnoise.com) Received: from screech.weirdnoise.com (localhost [127.0.0.1]) by screech.weirdnoise.com (8.9.3/8.9.3) with ESMTP id SAA07308 for ; Mon, 13 Mar 2000 18:56:09 -0800 Message-Id: <200003140256.SAA07308@screech.weirdnoise.com> X-Mailer: exmh version 2.0.2 To: current@FreeBSD.ORG Subject: Re: MAX_UID ? In-Reply-To: Your message of "Tue, 14 Mar 2000 03:54:21 +0200." <20000314035420.B17084@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Mar 2000 18:56:08 -0800 From: Ed Hall Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Giorgos Keramidas wrote: : This is marvellous in it's simplicity of interface. : : Yet, using sizeof(char) and assuming that it's going to be 1, strikes me : like a dangerous thing to do. I have never heard of machines where this : isn't true, but I seem to recall that the comp.lang.c FAQ mentions this : somewhere. I'll look it up tomorrow, since it's getting too late... In both C and C++, sizeof(T) is defined to be the size of T in terms of the size of a char, so by definition sizeof(char) == 1. You can look it up (for C) at: http://www.eskimo.com/~scs/C-faq/q7.8.html For C++, see section 4.6 of The C++ Programming Language. -Ed To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message