Article View: fr.comp.lang.c
Article #15302Re: Paramètre constant
From: Hamiral
Date: Sat, 01 Oct 2005 16:35
Date: Sat, 01 Oct 2005 16:35
9 lines
1438 bytes
1438 bytes
Alain CROS a �crit : > Dans une fonction d�clar�e : > int split(splitab *pt, char *c, const int taille, const char sep) > > le *c est un pointeur sur une chaine de char. > Je voudrais faire �voluer le pointeur *c++ mais interdire la modification de la chaine en la d�clarant avec const. > Je ne trouve pas o� mettre le const. Et si tu incr�mentais plut�t une copie de ton param�tre c ???
Technical Details
Message-ID:
<433ebaeb$0$301$7a628cd7@news.club-internet.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nocworld.net!freenix!usenet-fr.net!proxad.net!proxad.net!m.t-online.fr!v.t-online.fr!t-online.fr!not-for-mailReferences:
<433eafec$0$18071$626a14ce@news.free.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,8be8da6b5abaf548 X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nocworld.net!freenix!usenet-fr.net!proxad.net!proxad.net!m.t-online.fr!v.t-online.fr!t-online.fr!not-for-mail Date: Sat, 01 Oct 2005 18:35:55 +0200 From: Hamiral <hamiral@hamham.fr> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: fr.comp.lang.c Subject: Re: Paramètre constant References: <433eafec$0$18071$626a14ce@news.free.fr> In-Reply-To: <433eafec$0$18071$626a14ce@news.free.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 9 Message-ID: <433ebaeb$0$301$7a628cd7@news.club-internet.fr> Organization: Club-Internet / T-Online France NNTP-Posting-Date: 01 Oct 2005 16:35:55 GMT NNTP-Posting-Host: 62.35.250.47 X-Trace: 1128184555 news.club-internet.fr 301 62.35.250.47 X-Complaints-To: abuse@club-internet.fr