Date: 02/28/99
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3"
- In reply to: Jim Winstead: "Re: [PHP-DEV] CVS update: php3"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Feb 28, 1999 at 02:40:28PM -0500, Jim Winstead wrote:
> On Feb 28, sas <email protected> 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 <email protected> | for PGP public key
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3"
- In reply to: Jim Winstead: "Re: [PHP-DEV] CVS update: php3"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

