[Bf-committers] Blender 2.43 RC1
Stephen Swaney
sswaney at centurytel.net
Mon Jan 8 15:26:11 CET 2007
On Mon, Jan 08, 2007 at 10:04:25AM +0100, Giuseppe Ghib? wrote:
> just one question.
> Why you used string[X] = 0, rather than string[X] = '\0'? Results of string
> termination should be the same (but the '\0' reminds we are dealing with a char string rather
> than a pointer), but just wondering of the various "styles" ... ;-)
Because the binary result is exactly the same.
Because it is a common idiom in C - hence the name NULL terminated string.
This just pointed-haired-boss nitpicking. Let's *not* have a long
discussion about this here.
--
Stephen Swaney
sswaney at centurytel.net
More information about the Bf-committers
mailing list