Hacker News new | ask | show | jobs
by zerokernel 3074 days ago
> NUL is not a character

Somehow NUL is still an assigned character in the ASCII code table. Strange, hmmm?

1 comments

Ha, the fact that I spelled it "NUL" instead of using the word "null" should have made me pause. :)

Ok, it's an ASCII character code point. One that's used to terminate strings. I meant it's not a character you'd find in the middle of a string, though I realize that's kinda tautological. Back when ASCII was developed, punch cards were used. Any row in the card that wasn't punched was a NUL. It wouldn't have made sense to have it in the middle of a string. It would be like missing a character altogether.