Liste des Groupes | Revenir à cl c |
On 02/04/2025 17:38, bart wrote:On 02/04/2025 16:26, Muttley@DastardlyHQ.org wrote:
This program:The common definition in C is :Never understood that in C++ never mind C. NULL has worked fine for 50 years.>
And it's been a hack for 50 years. Especially when it is just:
>
#define NULL 0
#define NULL ((void*) 0)
Some compilers might have an extension, such as gcc's "__null", that are used instead to allow better static error checking.
(In C++, it is often defined to 0, because the rules for implicit conversions from void* are different in C++.)
><stddef.h>, as pretty much any C programmer will know.
You also need to include some header (which one?) in order to use it.
Les messages affichés proviennent d'usenet.