Re: Use of "empty character constant?"
| From: | Matt W | Date: | Sat, 08 Jul 2006 09:50:00 +0000 |
| Subject: | Re: Use of "empty character constant?" | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24293@lists.php.net to get a copy of this message | ||
Hi Pierre,
Thanks for the reply, but where does that page talk about an EMPTY character
constant? I pretty much understand character handling otherwise. :-)
Thanks,
Matt
----- Original Message -----
From: "Pierre"
Subject: Re: [PHP-DEV] Use of "empty character constant?"
> On 7/8/06, Matt W wrote:
> > Hi all,
> >
> > I'm a C newbie and just started experimenting with the PHP internals a
> > couple weeks ago... A few days ago I noticed assignment/comparison of
char
> > variables to '' (nothing between single quotes) in, for example, the
> > is_numeric_string function (zend_operators.h), snprintf.c, spprintf.c,
etc.
> > I don't understand what it's doing. :-/ The only references I can find
are
> > about "empty character constant" compiler errors, which is what happens
if I
> > try to use '' in the same way (VC++ Express). Though PHP compiles fine
with
> > these "constructs," so something must be special there?
>
>
> http://publications.gbdirect.co.uk/c_book/chapter5/character_handling.html
>
> Cheers,
> --Pierre