🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71828

Re: NNTP posting headers...

#71828
From: Szymon Sokół
Date: Sat, 11 Jun 2005 14:26
16 lines
2279 bytes
Urs Janßen <urs@akk.org> wrote:
> In <Xqyqe.5156$LF3.6872124@news.sisna.com>, John Smith wrote:
> \0 terminte _all_ you strings:

> >   char p[] = {'P', 'O', 'S', 'T', 13, 10};

Is there any reason not to write it as:
char p[] = "POST\r\n";
?
More readable *and* ensures null-termination.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Technical Details
Message-ID: <d8esac$g62$2@galaxy.uci.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tsicnews.teliasonera.com!newsfeed.pionier.net.pl!news.nask.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!not-for-mail
References: <W%pqe.2023$Q_3.4102173@news.sisna.com> <874qc53ex8.fsf@windlord.stanford.edu> <NSqqe.2929$DA5.4616216@news.sisna.com> <1118460352.bdf9cb8e357df309ac11eda932577499@teranews> <7ktqe.4456$JY7.5146668@news.sisna.com> <Zmtqe.4477$V_7.5198016@news.sisna.com> <d8e428$nam$1@galaxy.uci.agh.edu.pl> <swwqe.5149$292.6379588@news.sisna.com> <Xqyqe.5156$LF3.6872124@news.sisna.com> <d8edt8$4p2$1@news2.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <d8esac$g62$2@galaxy.uci.agh.edu.pl>
Subject: Re: NNTP posting headers...
Date: Sat, 11 Jun 2005 14:26:20 +0000
From: Szymon Sokół <szymon@bastard.operator.from.hell.pl>
References: <W%pqe.2023$Q_3.4102173@news.sisna.com> <874qc53ex8.fsf@windlord.stanford.edu> <NSqqe.2929$DA5.4616216@news.sisna.com> <1118460352.bdf9cb8e357df309ac11eda932577499@teranews> <7ktqe.4456$JY7.5146668@news.sisna.com> <Zmtqe.4477$V_7.5198016@news.sisna.com> <d8e428$nam$1@galaxy.uci.agh.edu.pl> <swwqe.5149$292.6379588@news.sisna.com> <Xqyqe.5156$LF3.6872124@news.sisna.com> <d8edt8$4p2$1@news2.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tsicnews.teliasonera.com!newsfeed.pionier.net.pl!news.nask.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!not-for-mail
Newsgroups: news.software.nntp
Organization: University of Mining & Metallurgy
Lines: 16
Sender: Szymon Sokol <szymon@galaxy.uci.agh.edu.pl>
NNTP-Posting-Host: galaxy.uci.agh.edu.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
X-Trace: galaxy.uci.agh.edu.pl 1118499980 16578 149.156.96.9 (11 Jun 2005
X-Complaints-To: usenet@uci.agh.edu.pl
NNTP-Posting-Date: Sat, 11 Jun 2005 14:26:20 +0000 (UTC)
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (SunOS/5.8 (sun4u))