Article View: fr.comp.lang.c
Article #15306Re: Paramètre constant
From: Emmanuel Delahaye
Date: Sat, 01 Oct 2005 19:27
Date: Sat, 01 Oct 2005 19:27
21 lines
1611 bytes
1611 bytes
Hamiral wrote on 01/10/05 : > 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 ??? Ou la la la la... -- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html "Mal nommer les choses c'est ajouter du malheur au monde." -- Albert Camus.
Technical Details
Message-ID:
<mn.0d077d5a6a40d822.15512@YOURBRAnoos.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!infeed-1.proxad.net!news18-e.free.fr!not-for-mailReferences:
<433eafec$0$18071$626a14ce@news.free.fr> <433ebaeb$0$301$7a628cd7@news.club-internet.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!news2.google.com!proxad.net!infeed-1.proxad.net!news18-e.free.fr!not-for-mail Subject: Re: Paramètre constant From: "Emmanuel Delahaye" <emdel@YOURBRAnoos.fr> References: <433eafec$0$18071$626a14ce@news.free.fr> <433ebaeb$0$301$7a628cd7@news.club-internet.fr> Newsgroups: fr.comp.lang.c Message-ID: <mn.0d077d5a6a40d822.15512@YOURBRAnoos.fr> X-Newsreader: MesNews/1.04.00.00-fr Date: Sat, 01 Oct 2005 21:27:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Lines: 23 Organization: Guest of ProXad - France NNTP-Posting-Date: 01 Oct 2005 21:27:57 MEST NNTP-Posting-Host: 81.65.109.78 X-Trace: 1128194877 news18-e.free.fr 5289 81.65.109.78:16759 X-Complaints-To: abuse@proxad.net