Re: RFC: String cleanup



On Fri, 2005-12-16 at 16:11, Benoît Dejean wrote:

> > Changing from:
> >   [const] char *str
> > to:
> >   [const] char str[]
> 
> Isn't that exactly the same ?

const char str[] is a string of chars (and a symbol pointing of them).

const char *str is a string of char and a pointer on them (and a
symbol).

that's one more printer in memory, and a dereferenciation.

	Xav





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]