Article View: fr.comp.lang.c
Article #15497Re: memcpy et char
From: Harpo
Date: Fri, 23 Sep 2005 15:25
Date: Fri, 23 Sep 2005 15:25
18 lines
1325 bytes
1325 bytes
Targeur fou wrote: > > exple : > #define SIZE_ARR 50 > double arr1[SIZE_ARR]; > double arr2[SIZE_ARR]; > double * pData1; > double * pData2; > /* ... */ > /* with arrays */ > memcpy(arr2, arr1, sizeof(double)*SIZE_ARR); Je pr�f�rerais �crire memcpy( arr2, arr1, sizeof( * arr1 ) * SIZE_ARR ) ; car si on change le type de '* arr1' en disons triple, il n'est pas n�cessaire de changer cette instruction.
Technical Details
Message-ID:
<43341e90$0$1734$8fcfb975@news.wanadoo.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mailReferences:
<4333e995$0$17469$626a14ce@news.free.fr> <1127484266.226712.264720@g49g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,366ad66ae342f8da X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <43341e90$0$1734$8fcfb975@news.wanadoo.fr> From: Harpo <trashcan@hotmail.com> Subject: Re: memcpy et char Newsgroups: fr.comp.lang.c Date: Fri, 23 Sep 2005 17:25:36 +0200 References: <4333e995$0$17469$626a14ce@news.free.fr> <1127484266.226712.264720@g49g2000cwa.googlegroups.com> Organization: ARG ; Association pour la Rehabilitation du Goto User-Agent: KNode/0.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Lines: 18 NNTP-Posting-Date: 23 Sep 2005 17:26:09 CEST NNTP-Posting-Host: 81.53.255.96 X-Trace: 1127489169 news.wanadoo.fr 1734 81.53.255.96:46808 X-Complaints-To: abuse@wanadoo.fr