I'm drowning in PHP

Andy Armstrong andy at hexten.net
Tue May 15 13:12:38 BST 2007

On 15 May 2007, at 13:00, David Cantrell wrote:
> FFS, they could at least have chosen 0xFF which isn't a legal ASCII
> character.

Then you'd trip over the 'are characters signed or unsigned?'  
confusion that reigned for a few years.

And in times when memory was tighter it /was/ nice to be able to write

const char *strip_z(const char *s) {
    while (*s == '0') { s++; }
    return s;

which you can't do if you have a counted string. Pretty anachronistic  
now though.

Andy Armstrong, hexten.net

More information about the london.pm mailing list