Turbo C large character array

diamond@tkovoa diamond at tkou02.enet.dec.com
Tue Aug 7 12:32:27 AEST 1990


In article <manning.649959245 at coil> manning at coil.caltech.edu (Evan Marshall Manning) writes:

>I believe malloc() takes size_t = unsigned int.  On systems where int is
>16 bits 64K is indeed the limit.

size_t = unsigned some_integral_type.  On systems where int is 16 bits, size_t
might be 128 bits although the limit might be 2**64 instead of 2**128.  On
systems where int is 64 bits, size_t might be 32 bits.  If you want to know
the limit on your machine, you have to RTFM.  Calculations will not tell you.
-- 
Norman Diamond, Nihon DEC     diamond at tkou02.enet.dec.com
This is me speaking.  If you want to hear the company speak, you need DECtalk.



More information about the Comp.lang.c mailing list