Portabilität: NULL
- From
- Alexander Holler <holler@...>
- Date
Hab auch was zum portablen Programmieren zu sagen. ;) Ist zwar eher nebensächlich, aber trotzdem interessant. Die NULL in C(++) ist nicht unbedingt gleich 0. Es ist zwar ziehmlich unmöglich alle Programme dahingehend anzupassen (wer macht nicht lieber if(!var) anstatt if (var != NULL) aber es gibt eine Hardware (kann mich nicht mehr entsinnen welche) bei der NULL != 0 ist. Auf der läuft sicherlich kaum ein C-Proggi, aber ich fand das recht interessant. Gruß, Alexander
Thread
Follow-ups:
- Re: Portabilität: NULL Mathias Waack <mathias@...>
- Re: Portabilität: NULL Christian Weisgerber <naddy@...>