News for hackers. Stuff that matters.
Re:The C23 edition of Modern C is now available for free by jlokier on Thursday October 24, 2024 @10:01AM (#41935596)
> what is wrong with NULL?

This code has a bug, and may even crash on some architectures:

    execlp("echo", "echo", "Hello, world!", NULL);
This code doesn't have the bug:

    execlp("echo", "echo", "Hello, world!", nullptr);
Neither does this:

    execlp("echo", "echo", "Hello, world!", (char *)NULL);

There are no comments on this comment yet.