* Eric G. Miller <egm2@jps.net> [2001.11.04 10:56:49-0800]:
> > char *buff = (char*)malloc(128);
> > sizeof(buff) == 4 // on i32 machines
> >
> > --> problem!
>
> Depends on what "buff" is, its scope and how sizeof is used.
which is why i declared it as a pointer to buffer space. i know that
if it is a compile-time allocated chunk, sizeof is (can be) happy, but
most of the time, the buffer is run-time allocated...
--
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
"god is a comedian playing to an audience too afraid to laugh."
-- voltaire
Attachment:
pgpPdHhft4Gu7.pgp
Description: PGP signature