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

Re: [PATCH] Re: propedit on svn:mime-type

From: Rafael Garcia-Suarez <raphel.garcia-suarez_at_hexaflux.com>
Date: 2003-03-10 18:10:15 CET

Branko ÄŒibej <brane@xbc.nu> wrote:
> Rafael Garcia-Suarez wrote:
> >I thought that sizeof("\n") == sizeof(char*).
>
> No, the type of a string literal is a character array, not a character
> pointer. So writing "\n" is semantically equivalent to writing
>
> (char[]){ '\n', '\0' }
>
> if such a thing could be done in C.

Duh, thanks for correcting me. I'm not familiar with the C standards ;
I wonder if this idiom is reasonably portable across compilers.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 10 18:11:34 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.