Re: New function bytesize()

From: Date: Wed, 19 Jul 2000 14:28:17 +0000
Subject: Re: New function bytesize()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-25113@lists.php.net to get a copy of this message
Well a char * is a char * nothing to do with php -- CaPS On Wed, 19 Jul 2000, Stanislav Malyshev wrote: > MK(>> But ehm I have this silly question. > MK(>> sizeof(string) = strlen(string) right? > > No. sizeof(string) = strlen(string) + 1. In PHP, though, length of string > and actual buffer size allocated for that string can significantly differ. > Look for example at fgets code. > -- > Stanislav Malyshev stas@zend.com > +972-3-6139665 >

« previous php.dev (#25113) next »