Article View: fr.comp.lang.c
Article #15040Re: Insérer une fonctions dans une structure?
From: Pierre Habouzit
Date: Sat, 15 Oct 2005 17:54
Date: Sat, 15 Oct 2005 17:54
21 lines
1619 bytes
1619 bytes
> int (*fn)();
ceci est un pointeur sur une fonction qui prend aucun argument et renvoie un
entier.
> ONE, double(ONE), "premier message",
double(ONE) est un entier. pas un pointeur sur fonction.
> pour info:
> int double(int i)
> {
> return i * i;
> }
double est tr�s mal nomm�e, elle devrait s'appeler square (ou carre).
d'autant plus que double est un type � virgule flottante.
--
�O� Pierre Habouzit
��O madcoder@debian.org
OOO http://www.madism.org
Technical Details
Message-ID:
<43514229$0$13508$626a14ce@news.free.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:
<87r7amd6qx.fsf@venus.net>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,d00d98e8032f6fc
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
Message-ID: <43514229$0$13508$626a14ce@news.free.fr>
From: Pierre Habouzit <madcoder@debian.org>
Subject: Re: Insérer une fonctions dans une structure?
Newsgroups: fr.comp.lang.c
Date: Sat, 15 Oct 2005 19:54:20 +0200
References: <87r7amd6qx.fsf@venus.net>
User-Agent: KNode/0.9.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
X-Face: $(^e[V4D-[`f2EmMGz@fgWK!e.B~2g.{08lKPU(nc1J~z\4B>*JEVq:E]7G-\6$Ycr4<;Z!|VY6Grt]+RsS$IMV)f>2)M="tY:ZPcU;&%it2D81X^kNya0=L]"vZmLP+UmKhgq+u*\.dJ8G!N&=EvlD
Lines: 21
Organization: Guest of ProXad - France
NNTP-Posting-Date: 15 Oct 2005 19:53:45 MEST
NNTP-Posting-Host: 82.225.205.10
X-Trace: 1129398825 news18-e.free.fr 13508 82.225.205.10:58258
X-Complaints-To: abuse@proxad.net