comp.lang.c
[Top] [All Lists]

Re: Doubt about array's name

Subject: Re: Doubt about array's name
From: nembo kid
Date: Wed, 30 Apr 2008 17:04:47 +0200
Newsgroups: comp.lang.c


Richard Heathfield ha scritto:

Why not? It's only a copy, after all. It doesn't affect the original array address in any way whatsoever.

Ok my doubts cleared all.

But anyway I dont'understand because someone add the qualificator "const" to string array passed to the function (so to avoid any change of this pointer).

/* Code */
void chartobyte (const char *s)
/* Code */


  while(*s != '\0') /* significant difference #2 */

Yes, was my mistake.

Thanks again and apologies for my bad english.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy