Re: ZEND_PUTC question
| From: | Andi Gutmans | Date: | Thu, 21 Nov 2002 21:40:30 +0000 |
| Subject: | Re: ZEND_PUTC question | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91435@lists.php.net to get a copy of this message | ||
Yes, so that it'll be compatible with the way libc's putc() works (the value is the written char).
Andi
At 01:20 PM 11/21/2002 -0800, Brad Bulger wrote:
I was looking at compile warnings for 4.3, and came across this in Zend/zend.h /* output support */#define ZEND_WRITE(str, str_len) zend_write((str), (str_len)) #define ZEND_PUTS(str) zend_write((str), strlen((str))) #define ZEND_PUTC(c) zend_write(&(c), 1), (c)is there a reason why that last line isn't just#define ZEND_PUTC(c) zend_write(&(c), 1)?? -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php