[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1064168 - in /subversion/trunk/subversion/include/private: svn_eol_private.h svn_fs_util.h svn_mergeinfo_private.h svn_opt_private.h svn_sqlite.h svn_wc_private.h

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: Thu, 27 Jan 2011 23:50:21 -0500

On Thu, 2011-01-27 at 21:46 -0500, Senthil Kumaran S wrote:
> A NULL does mean '\0' or (void *) 0x. I also referred this -
> http://en.wikipedia.org/wiki/Null_character which says the same when
> referring to NULL termination of a string, except for one place where
> it says 'NUL' is an abbreviation for NULL character -
> http://en.wikipedia.org/wiki/NUL

"NULL" (all caps) is a C preprocessor constant used to denote a null

"NUL" (all caps) is sometimes used as an abbreviation for the null

"Null" (uncapitalized except as appropriate for beginning a sentence) is
an noun or adjective which can be used in a variety of contexts. You
will note that "null" is never written in all caps in the Wikipedia
articles you referenced.

So a "NULL-terminated string" is a meaningless concept; you can't use a
null pointer to terminate a character string. A "NUL-terminated string"
is meaningful, as is a "null-terminated string" or
"null-character-terminated string."
Received on 2011-01-28 05:51:04 CET

This is an archived mail posted to the Subversion Dev mailing list.