🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: memcpy et char

#15510
From: Charlie Gordon
Date: Sat, 24 Sep 2005 03:20
27 lines
1934 bytes
"Harpo" <trashcan@hotmail.com> wrote in message
news:433448b6$0$17240$8fcfb975@news.wanadoo.fr...
> Emmanuel Delahaye wrote:
>
> >>> ne va pas avec malloc() ?
> >>
> >> Ca co�te cher.
> >
> > En terme de quoi ? Temps d'ex�cution, taille, m�moire ?
> principalement temps et sans doute plus de possibilit�s d'interruption
> pour page fault.

C'est surtout totalement inutile dans le contexte de l'OP.  Comme tout le monde
l'a remarqu�.

...
> Mon conseil dans ce cas, n'appelez jamais de fonctions et n'utilisez
> jamais de variables automatiques.
> Passer un argument � main( ) est d�j� risqu�.
> Commencez tous les programmes par ce test :
> if ( argc > 1 ) abort ;
> Si vous arrivez jusque l�, cela vous �vitera de vous planter apr�s.

En fait cette instruction a peu de chances d'avoir le moindre effet ;-)

-- 
Chqrlie. (back from the underworld)
Technical Details
Message-ID: <dh2f4j$69b$1@reader1.imaginet.fr>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!teaser.fr!fr.colt.net!writer!not-for-mail
References: <4333e995$0$17469$626a14ce@news.free.fr> <mn.bc1f7d598a134f88.15512@YOURBRAnoos.fr> <4334381a$0$20167$8fcfb975@news.wanadoo.fr> <mn.bc9d7d593641825a.15512@YOURBRAnoos.fr> <433448b6$0$17240$8fcfb975@news.wanadoo.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!teaser.fr!fr.colt.net!writer!not-for-mail
From: "Charlie Gordon" <news@chqrlie.org>
Newsgroups: fr.comp.lang.c
Subject: Re: memcpy et char
Date: Sat, 24 Sep 2005 05:20:11 +0200
Organization: ImagiNET / Colt Internet
Lines: 30
Message-ID: <dh2f4j$69b$1@reader1.imaginet.fr>
References: <4333e995$0$17469$626a14ce@news.free.fr> <mn.bc1f7d598a134f88.15512@YOURBRAnoos.fr> <4334381a$0$20167$8fcfb975@news.wanadoo.fr> <mn.bc9d7d593641825a.15512@YOURBRAnoos.fr> <433448b6$0$17240$8fcfb975@news.wanadoo.fr>
NNTP-Posting-Host: gw.netgem.com
X-Trace: reader1.imaginet.fr 1127530451 6443 195.68.2.34 (24 Sep 2005 02:54:11 GMT)
X-Complaints-To: abuse@imaginet.fr
NNTP-Posting-Date: 24 Sep 2005 02:54:11 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506