🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4897

Re: beginnersprobleem C onder Linux

#4897
From: KLinZ
Date: Sun, 29 Jun 2003 13:12
21 lines
2074 bytes
Philip Paeps wrote:
> KLinZ <klinz@nospamzenobitsspamno.com> wrote:
>> Philip Paeps wrote:
>>>>  char header[128];  /* first 128 bytes in header */
>>> 
>>> Ik zou die buffer 128+1 maken.
>> 
>> Waarom? Hij wil toch maar 128 bytes inlezen? Hij heeft het nergens
>> over een zero terminated string ofzo.
> 
> Rare gewoonte van mij.  Ik voorzie altijd de mogelijkheid om er een
> \0 achter te hangen, 'just in case'.  Zelfs als het geen string is,
> komt die \0 soms nogal van pas als ik bizarre dingen met die data wil
> uitvreten. 
> 
>  - Philip [of is het een slechte gewoonte? ;-)]

Ja. Maar jij hebt wel meer rare gewoontes, dus ik vergeef het je.

-- 
www.zenobits.com
Technical Details
Message-ID: <AzBLa.14209$KF1.277555@amstwist00>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!amstwist00.POSTED!not-for-mail
References: <bdmcmq$ttr34$1@ID-177484.news.dfncis.de> <41zLa.14163$KF1.277497@amstwist00> <kkzLa.14169$KF1.277597@amstwist00> <d4jmdb.9u.ln@prosperina.home.paeps.cx> <hKALa.14197$KF1.277566@amstwist00> <ehnmdb.9u.ln@prosperina.home.paeps.cx>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,6f05fc089e78a5f3
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-06-29 06:10:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!amstwist00.POSTED!not-for-mail
From: "KLinZ" <klinz@NOSPAMzenobitsSPAMNO.com>
Newsgroups: be.comp.programming
References: <bdmcmq$ttr34$1@ID-177484.news.dfncis.de> <41zLa.14163$KF1.277497@amstwist00> <kkzLa.14169$KF1.277597@amstwist00> <d4jmdb.9u.ln@prosperina.home.paeps.cx> <hKALa.14197$KF1.277566@amstwist00> <ehnmdb.9u.ln@prosperina.home.paeps.cx>
Subject: Re: beginnersprobleem C onder Linux
Lines: 21
Organization: Inc.
MIME-Version: 1.0
Content-Type: text/plain;
 charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <AzBLa.14209$KF1.277555@amstwist00>
Date: Sun, 29 Jun 2003 15:12:25 +0200
NNTP-Posting-Host: 212.187.71.152
X-Complaints-To: abuse@chello.nl
X-Trace: amstwist00 1056892256 212.187.71.152 (Sun, 29 Jun 2003 15:10:56 MET DST)
NNTP-Posting-Date: Sun, 29 Jun 2003 15:10:56 MET DST