Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 1997 14:24:23 -0700 (PDT)
From:      Josef Grosch <jgrosch@superior.mooseriver.com>
To:        shovey@buffnet.net (Stephen Hovey)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How big is an int?
Message-ID:  <199705232124.OAA06995@superior.mooseriver.com>
In-Reply-To: <Pine.BSI.3.95.970523164226.7479A-100000@buffnet7.buffnet.net> from Stephen Hovey at "May 23, 97 04:43:00 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705232124.OAA06995>