Re: Use of "empty character constant?"

From: Date: Sat, 08 Jul 2006 09:17:54 +0000
Subject: Re: Use of "empty character constant?"
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-24292@lists.php.net to get a copy of this message
On 7/8/06, Matt W <php_lists@realplain.com> 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

« previous php.internals (#24292) next »