From owner-freebsd-questions Fri May 23 14:24:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA17418 for questions-outgoing; Fri, 23 May 1997 14:24:42 -0700 (PDT) Received: from superior.mooseriver.com (ppp010-sm2.sirius.com [205.134.231.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA17410 for ; Fri, 23 May 1997 14:24:39 -0700 (PDT) Received: (from jgrosch@localhost) by superior.mooseriver.com (8.8.5/8.8.5) id OAA06995; Fri, 23 May 1997 14:24:23 -0700 (PDT) From: Josef Grosch Message-Id: <199705232124.OAA06995@superior.mooseriver.com> Subject: Re: How big is an int? In-Reply-To: from Stephen Hovey at "May 23, 97 04:43:00 pm" To: shovey@buffnet.net (Stephen Hovey) Date: Fri, 23 May 1997 14:24:23 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: jgrosch@superior.mooseriver.com X-Mailer: ELM [version 2.4ME+ PL31 (25)] 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 Stephen Hovey said: > >How big is type int on freebsd? 2 bytes? 4? Im trying to figure out >max/min vals and if I need to convert some software I have to longs. > >Thanx > > Try looking in /usr/include/machine/limits.h or try this #include main() { printf("The size of an int is %d bytes\n", sizeof(int)); exit(0); } Josef -- Josef Grosch | Another day closer to a | FreeBSD 2.2.1 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses