From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 20 20:51:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AA3316A4CE for ; Thu, 20 Nov 2003 20:51:06 -0800 (PST) Received: from smtp.sw.oz.au (alt.aurema.com [203.217.18.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19ECB43F3F for ; Thu, 20 Nov 2003 20:51:05 -0800 (PST) (envelope-from vance@aurema.com) Received: from smtp.sw.oz.au (localhost [127.0.0.1]) by smtp.sw.oz.au with ESMTP id hAL4p3BA028246; Fri, 21 Nov 2003 15:51:03 +1100 (EST) Received: (from vance@localhost) by smtp.sw.oz.au id hAL4p2bs028222; Fri, 21 Nov 2003 15:51:02 +1100 (EST) Date: Fri, 21 Nov 2003 15:51:02 +1100 From: Christopher Vance To: Jay Sern Liew Message-ID: <20031121045102.GL12532@aurema.com> References: <20031120223816.G61303@pinnacle.schulte.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20031120223816.G61303@pinnacle.schulte.org> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.38 cc: freebsd-hackers@freebsd.org Subject: Re: integer and long max/min values X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 04:51:06 -0000 On Thu, Nov 20, 2003 at 10:39:05PM -0600, Jay Sern Liew wrote: >how do I find out the maximum (and minimum) value a long and int will hold >in C? (before it overflows or underflows) > >if it's compiler-dependent, then does anyone know where I can find the GCC >documentation for stuff like that? Wrong mailing list - if you don't already know really basic C, you ain't a hacker. Try . -- Christopher Vance