Re: CVS update: php3
| From: | sas at schell dot de | Date: | Sun, 28 Feb 1999 21:53:10 +0000 |
| Subject: | Re: CVS update: php3 | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-4374@lists.php.net to get a copy of this message | ||
On Sun, Feb 28, 1999 at 02:40:28PM -0500, Jim Winstead wrote:
> On Feb 28, sas@schell.de wrote:
> > On Sun, Feb 28, 1999 at 04:53:07PM -0000, rasmus wrote:
> > > Date: Sunday February 28, 1999 @ 11:53
> > > Author: rasmus
> > >
> > > Update of /repository/php3
> > > In directory asf:/u/temp/cvs-serv15373
> > >
> > > Modified Files:
> > > alloc.c
> > > Log Message:
> > > sizeof() returns an int, doesn't it?
> >
> > I've looked into several books to answer that question before I committed. I
> > did not find anything. But have a look:
>
> It is probably defined to return a size_t or something like that,
> for what its worth.
ANSI C defines it that way. size_t is unsigned int or unsigned long, depending
on the platform.
The "64 Bit UnixWare Porting Guide" demonstrates one "broken code segment":
void dbg_size(size_t nbytes) {
printf("Got %u bytes.\n", nbytes); /* broken */
printf("Got %lu bytes.\n", (unsigned long)nbytes); /* OK */
}
http://www.sco.com/developer/64bit.htm
--
Regards,
Sascha Schumann |
Consultant | finger sas@schell.de
| for PGP public key
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net