4 ms·
In all the comments in this thread it's interesting how people confuse: * NUL: An ASCII non-printing character with the byte value of 0 * NULL: A pointer that
by rswail 4mo ago
In all the comments in this thread it's interesting how people confuse:
* NUL: An ASCII non-printing character with the byte value of 0
* NULL: A pointer that does not point to usable memory with the value that compiles in C to be equal to ((void *) 0).
- layer8 4mo agoNUL was always just an abbreviation for null: https://www.rfc-editor.org/rfc/rfc20.html#section-4 https://www.rfc-editor.org/rfc/rfc20.html#section-4 I don’t think anyone in this thread is confusing the null character with the null pointer.
- rswail 4mo agoI've seen a lot of confusion, where people are talking about checking for a NULL at the end of a list of pointers which is very different to a NUL at the end of a string. Yes it was an abbreviation in ASCII, as are all the non-printable first 32 codes.