Article View: fr.comp.lang.c
Article #15059Re: bug dans un petit programme
From: Eric Levenez
Date: Sun, 16 Oct 2005 11:26
Date: Sun, 16 Oct 2005 11:26
15 lines
1688 bytes
1688 bytes
Le 16/10/05 13:23, dans <1129461802.259474.27710@g43g2000cwa.googlegroups.com>, ��Thierry B�� <thierry.bouhnik@gmail.com> a �crit�: > Quand on declare un pointeur vers un char au lieu d'un tableau, on est > forc� de faire nous m�me le malloc donc (qui appremment n'est pas > n�cessaire quand on declare un tableau), et ensuite de faire un free > en fin de programme sur le char* ? Oui, soit on utilise un tableau pr�allou�, soit on fait l'allocation � la main par malloc et on n'oublie pas de lib�rer par free. -- �ric L�v�nez -- <http://www.levenez.com/> Unix is not only an OS, it's a way of life.
Technical Details
Message-ID:
<BF780584.4825F%new@levenez.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!infeed-1.proxad.net!news18-e.free.fr!not-for-mailReferences:
<1129454997.732041.79560@g43g2000cwa.googlegroups.com> <BF77FB36.4824C%new@levenez.com> <1129461802.259474.27710@g43g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,825aa0bc6fede96b 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 User-Agent: Microsoft-Entourage/11.2.0.050811 Date: Sun, 16 Oct 2005 13:26:28 +0200 Subject: Re: bug dans un petit programme From: Eric Levenez <new@levenez.com> Newsgroups: fr.comp.lang.c Message-ID: <BF780584.4825F%new@levenez.com> Thread-Topic: bug dans un petit programme Thread-Index: AcXSRHMQscbggz43EdqdtAARJC39yA== References: <1129454997.732041.79560@g43g2000cwa.googlegroups.com> <BF77FB36.4824C%new@levenez.com> <1129461802.259474.27710@g43g2000cwa.googlegroups.com> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: 8bit Lines: 16 Organization: Guest of ProXad - France NNTP-Posting-Date: 16 Oct 2005 13:26:29 MEST NNTP-Posting-Host: 82.244.40.208 X-Trace: 1129461989 news18-e.free.fr 24274 82.244.40.208:52539 X-Complaints-To: abuse@proxad.net