🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15487

Re: memcpy et char

#15487
From: Stephane Legras-Decussy
Date: Fri, 23 Sep 2005 12:17
11 lines
1186 bytes
Alain CROS <Personne@ICI> a �crit dans le message :
4333e995$0$17469$626a14ce@news.free.fr...
> Est ce n�cessaire d'�crire
>     memcpy(ch, c, sizeof(char) * taille);
> ou bien je peux me contenter d'�crire
>     memcpy(ch, c, taille);

sizeof(char) vaut obligatoirement 1...

donc la 2eme propositions suffit...
Technical Details
Message-ID: <4333f1ef$0$5425$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-mail
References: <4333e995$0$17469$626a14ce@news.free.fr>

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!news2.google.com!proxad.net!infeed-1.proxad.net!news18-e.free.fr!not-for-mail
From: "Stephane Legras-Decussy" <admin@dtc.fr>
Newsgroups: fr.comp.lang.c
References: <4333e995$0$17469$626a14ce@news.free.fr>
Subject: Re: memcpy et char
Date: Fri, 23 Sep 2005 14:17:55 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Lines: 15
Message-ID: <4333f1ef$0$5425$626a14ce@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 23 Sep 2005 14:15:43 MEST
NNTP-Posting-Host: 213.103.61.123
X-Trace: 1127477743 news18-e.free.fr 5425 213.103.61.123:1032
X-Complaints-To: abuse@proxad.net