[MPlayer-cvslog] r32915 - trunk/gui/skin/font.c

Ingo Brückl ib at wupperonline.de
Thu Feb 17 12:28:00 CET 2011


Diego Biurrun wrote on Thu, 17 Feb 2011 12:06:27 +0100:

>> +bmpFont * Fonts[MAX_FONTS] = {NULL};

> I think the standard way to write this is '{ 0 }'.

Is this about the NULL vs. 0 as null pointer representation? I know that this
is a big issue in C++, but in C I prefer using NULL over 0 (as I prefer using
'\0' for char variables) in order to emphasize the type.

(I know that there are?/were machines where NULL did not point to "zero" and
I wonder if {NULL} or { 0 } is the right initialization for them.)

Ingo


More information about the MPlayer-cvslog mailing list