Article View: fr.comp.lang.c
Article #15430Re: conjugaison et autres exos sur les chaines [Was : Un système de conj...]
From: Emmanuel Delahaye
Date: Mon, 19 Sep 2005 18:52
Date: Mon, 19 Sep 2005 18:52
34 lines
2566 bytes
2566 bytes
harpo wrote on 19/09/05 :
> Compte tenu de la remarque d'Emmanuel, la version suivante me semble plus
> simple et plus concise :
>
> #include <stdlib.h>
> #include <stdio.h>
> int
> main( int argc, char ** argv )
> {
> char ** argp ;
> for ( argp = argv ; *(++argp) != NULL ; )
> {
> fprintf( stdout, "%s ", *argp ) ;
> }
> fprintf( stdout, "\n" ) ;
> return( EXIT_SUCCESS ) ;
> }
J'aime pas qu'on modifie la valeur des param�tres... ON peut en avoir
besoin plus tard, et on a plus rien de valide...
<Mode parano>
int main (int const argc, char ** const argv)
</>
et m�me
int main (int const argc, char const * const * const argv)
--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html
.sig under repair
Technical Details
Message-ID:
<mn.9ce47d59cd4f0974.15512@YOURBRAnoos.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!infeed-3.proxad.net!news18-e.free.fr!not-for-mailReferences:
<1126342327.583568.21420@g43g2000cwa.googlegroups.com> <4329e5d4$0$7846$8fcfb975@news.wanadoo.fr> <dge4b6$fqa$1@reader1.imaginet.fr> <mn.837a7d59123d924a.15512@YOURBRAnoos.fr> <432adddf$0$17220$8fcfb975@news.wanadoo.fr> <mn.84407d597cfa6e6e.15512@YOURBRAnoos.fr> <432b2a92$0$7861$8fcfb975@news.wanadoo.fr> <432c19e0$0$1710$8fcfb975@news.wanadoo.fr> <432cad90$0$27422$8fcfb975@news.wanadoo.fr> <432d1b7c$0$1743$8fcfb975@news.wanadoo.fr> <432d3117$0$1742$8fcfb975@news.wanadoo.fr> <mn.93877d590449a7bc.15512@YOURBRAnoos.fr> <432d7667$0$17248$8fcfb975@news.wanadoo.fr> <mn.94047d599f0cc076.15512@YOURBRAnoos.fr> <432da70c$0$1735$8fcfb975@news.wanadoo.fr> <432dd52f$0$622$626a14ce@news.free.fr> <mn.95687d59be8517f2.15512@YOURBRAnoos.fr> <432df189$0$2933$626a14ce@news.free.fr> <432e973a$0$1013$8fcfb975@news.wanadoo.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,b21b26167a936e28 X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!infeed-3.proxad.net!news18-e.free.fr!not-for-mail Subject: Re: conjugaison et autres exos sur les chaines [Was : Un système de conj...] From: "Emmanuel Delahaye" <emdel@YOURBRAnoos.fr> References: <1126342327.583568.21420@g43g2000cwa.googlegroups.com> <4329e5d4$0$7846$8fcfb975@news.wanadoo.fr> <dge4b6$fqa$1@reader1.imaginet.fr> <mn.837a7d59123d924a.15512@YOURBRAnoos.fr> <432adddf$0$17220$8fcfb975@news.wanadoo.fr> <mn.84407d597cfa6e6e.15512@YOURBRAnoos.fr> <432b2a92$0$7861$8fcfb975@news.wanadoo.fr> <432c19e0$0$1710$8fcfb975@news.wanadoo.fr> <432cad90$0$27422$8fcfb975@news.wanadoo.fr> <432d1b7c$0$1743$8fcfb975@news.wanadoo.fr> <432d3117$0$1742$8fcfb975@news.wanadoo.fr> <mn.93877d590449a7bc.15512@YOURBRAnoos.fr> <432d7667$0$17248$8fcfb975@news.wanadoo.fr> <mn.94047d599f0cc076.15512@YOURBRAnoos.fr> <432da70c$0$1735$8fcfb975@news.wanadoo.fr> <432dd52f$0$622$626a14ce@news.free.fr> <mn.95687d59be8517f2.15512@YOURBRAnoos.fr> <432df189$0$2933$626a14ce@news.free.fr> <432e973a$0$1013$8fcfb975@news.wanadoo.fr> Newsgroups: fr.comp.lang.c Message-ID: <mn.9ce47d59cd4f0974.15512@YOURBRAnoos.fr> X-Newsreader: MesNews/1.04.00.00-fr Date: Mon, 19 Sep 2005 20:52:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Lines: 36 Organization: Guest of ProXad - France NNTP-Posting-Date: 19 Sep 2005 20:52:04 MEST NNTP-Posting-Host: 81.65.109.78 X-Trace: 1127155924 news18-e.free.fr 14405 81.65.109.78:11310 X-Complaints-To: abuse@proxad.net