Xref: utzoo comp.sys.mac.programmer:17633 comp.sys.apple2:5728 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!haven!decuac!e2big.mko.dec.com!bacchus.pa.dec.com!decwrl!uunet!dg!archive!bkahn From: bkahn@archive.rtp.dg.com (Bruce Kahn) Newsgroups: comp.sys.mac.programmer,comp.sys.apple2 Subject: Re: Q: MPW IIGS C 1.0.1 type sizes Keywords: C, MPW, GS Message-ID: <756@dg.dg.com> Date: 10 Aug 90 21:08:22 GMT References: <734@dg.dg.com> <43828@apple.Apple.COM> Sender: root@dg.dg.com Reply-To: bkahn@archive.rtp.dg.com (Bruce Kahn) Organization: Data General Corporation, Research Triangle Park, NC Lines: 28 In article <43828@apple.Apple.COM>, dlyons@Apple.COM (David A. Lyons) writes: |> In article <734@dg.dg.com> bkahn@archive.rtp.dg.com (Bruce Kahn) writes: |> |> (How big are all of the MPW IIgs C data types?) |> |> The compiler will tell you! Run a program like this: |> |> printf("Size of char = %d\n", sizeof(char)); |> printf("Size of unsigned char = %d\n", sizeof(unsigned char)); |> ... |> -- |> David A. Lyons, Apple Computer, Inc. | DAL Systems |> Apple II Developer Technical Support | P.O. Box 875 |> America Online: Dave Lyons | Cupertino, CA 95015-0875 |> GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 |> Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons |> |> My opinions are my own, not Apple's. True (this Ive done for most of the types), what I was more interested in and didnt ask about too clearly was the range of values that each type can have and whether or not the default for that type is signed or unsigned. This can be done by simply looping but I dont want to wait for the program to dump or cycle around. Anyone know the default ranges for the pointers, enum, single, comp, float, long float, double, and long double as well as their default characteristic?? Bruce (bkahn@archive.rtp.dg.com)