Whose code should we break? ( was Re: 64 bit C )

Sean Eric Fagan sef at kithrup.COM
Wed Feb 20 16:05:25 AEST 1991


In article <11285 at pasteur.Berkeley.EDU> jbuck at galileo.berkeley.edu (Joe Buck) writes:
>Use size_t.  This is a typedef which is in /usr/include/sys/types.h on
>most Unix systems.  ANSI C requires every C implementation to provide
>a definition for it.  It must evaluate to an integral type big enough
>to hold a pointer.

Right.  Sure.  I see you've actually read anything Doug has ever posted
about the subject.

(that was extreme sarcasm, for those who weren't here when I typed it.)

size_t is an integral type *big enough to hold the size of any single
object*.  On a '286, for example, with a 16Mb address space, size_t should
be int, not long.

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef at kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.



More information about the Comp.lang.c mailing list