[Gc] size_t and ptrdiff_t size

MenTaLguY mental at rydia.net
Tue Nov 16 14:22:57 PST 2004


On Tue, 16 Nov 2004, MenTaLguY wrote:

> While ISO C is pretty free with its definitions of size_t and ptrdiff_t,
> apparently POSIX places an additional restriction on them -- neither ought
> to be wider than unsigned long or long, respectively.

Specifically:

 The implementation shall support one or more programming environments in
 which the widths of ptrdiff_t, size_t, and wchar_t are no greater than
 the width of type long. The names of these programming environments can
 be obtained using the confstr() function or the getconf utility.

-mental


More information about the Gc mailing list