Article View: fr.comp.lang.c
Article #15431Re: conjugaison et autres exos sur les chaines [Was : Un système de conj...]
From: Emmanuel Delahaye
Date: Mon, 19 Sep 2005 18:54
Date: Mon, 19 Sep 2005 18:54
22 lines
2759 bytes
2759 bytes
harpo wrote on 19/09/05 : > Je ne pense pas que ce soit une question de robustesse mais de > portabilit�, bon... c'est li�. > Que l'on m'arr�te si je dis des conneries : > NULL est g�n�ralement ( voire peut-�tre toujours ) d�fini comme 0, > g�n�ralement un truc avec tous les bits � 0, mais c'est une question > d'impl�mentation pas de sp�cification. On pourrait aussi impl�menter > NULL � FFFFFFFF et le test ne marcherait pas.. (sujet �puis� ad nauseam...) Peu importe la valeur physique de NULL, du moment qu'il s'agit d'un pointeur, c'est 0 vu du C. Donc if (!p) fonctionne comme if (p != 0) ou if (p != NULL). -- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html "It's specified. But anyone who writes code like that should be transmogrified into earthworms and fed to ducks." -- Chris Dollin CLC
Technical Details
Message-ID:
<mn.9ce67d59d5b1a352.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> <432ec68e$0$3758$626a14ce@news.free.fr> <432eff47$0$27415$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> <432ec68e$0$3758$626a14ce@news.free.fr> <432eff47$0$27415$8fcfb975@news.wanadoo.fr> Newsgroups: fr.comp.lang.c Message-ID: <mn.9ce67d59d5b1a352.15512@YOURBRAnoos.fr> X-Newsreader: MesNews/1.04.00.00-fr Date: Mon, 19 Sep 2005 20:54:41 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Lines: 24 Organization: Guest of ProXad - France NNTP-Posting-Date: 19 Sep 2005 20:54:43 MEST NNTP-Posting-Host: 81.65.109.78 X-Trace: 1127156083 news18-e.free.fr 14376 81.65.109.78:11318 X-Complaints-To: abuse@proxad.net