Re: RFC: String cleanup
- From: Xavier Bestel <xavier bestel free fr>
- To: Benoît Dejean <benoit placenet org>
- Cc: gtk-devel-list gnome org, Daniel Marjamäki <daniel marjamaki comhem se>
- Subject: Re: RFC: String cleanup
- Date: Fri, 16 Dec 2005 16:16:41 +0100
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]