🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15050

Re: accès à un élément de *argv[]

#15050
From: Emmanuel Delahaye
Date: Sat, 15 Oct 2005 21:28
21 lines
1858 bytes
Djoume SALVETTI a �crit :
> Le sam 15 oct 2005 20:07:28 GMT Emmanuel Delahaye <emdelYOURBRA@noos.fr> a �crit :
> 
>>Keskidi ? Dans le contexte d'un parametre, cette notation est tout � 
>>fait valable. char *argv[] est �quivallent (� un poil de grenouille 
>>pr�s) � char **argv
> 
> 
> C'est quoi ce poil de grenouille, je pensais que c'�tait strictement
> �quivalent.

T'as dej� vu une grenouille avec des poils ?

En fait, oui !

avec char **p, on peut ecrire char ** const p ce qui interdit p++;, par 
exemple, alors qu'avec char *p[], on ne peut pas. Inutile de dire que la 
premi�re forme a ma pr�f�rence pour cette raison...

-- 
C is a sharp tool
Technical Details
Message-ID: <43517496$0$21239$626a54ce@news.free.fr>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!infeed-4.proxad.net!nnrp2-1.free.fr!not-for-mail
References: <1129375708.461315.266570@g14g2000cwa.googlegroups.com> <mn.7ba37d5a3355d570.31483@laposte.net> <4351456b$0$21287$626a54ce@news.free.fr> <20051015211902.GB23137@krepost.taket.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,81ea3528af9bc77b
X-Google-Attributes: gidf9822,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!infeed-4.proxad.net!nnrp2-1.free.fr!not-for-mail
Date: Sat, 15 Oct 2005 23:28:42 +0200
From: Emmanuel Delahaye <emdelYOURBRA@noos.fr>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: fr, en
MIME-Version: 1.0
Newsgroups: fr.comp.lang.c
Subject: Re: accès à un élément de *argv[]
References: <1129375708.461315.266570@g14g2000cwa.googlegroups.com> <mn.7ba37d5a3355d570.31483@laposte.net> <4351456b$0$21287$626a54ce@news.free.fr> <20051015211902.GB23137@krepost.taket.org>
In-Reply-To: <20051015211902.GB23137@krepost.taket.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 21
Message-ID: <43517496$0$21239$626a54ce@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 15 Oct 2005 23:28:54 MEST
NNTP-Posting-Host: 81.65.109.208
X-Trace: 1129411734 nnrp2-1.free.fr 21239 81.65.109.208:21128
X-Complaints-To: abuse@proxad.net