Article View: news.software.nntp
Article #27169innd - source q1
From: makler
Date: Wed, 25 Mar 1998 00:00
Date: Wed, 25 Mar 1998 00:00
38 lines
1365 bytes
1365 bytes
INND source question no. 1
I see in the library libinn.a, there is a source file called
getmodaddr.c, that has a function GetModeratorAddress:
<snip>
/*
** Read the moderators file, looking for a moderator.
*/
char *
GetModeratorAddress(FromServer, ToServer, group)
FILE *FromServer;
FILE *ToServer;
char *group;
{
static char address[SMBUF];
register char *p;
char *save;
char buff[BUFSIZ];
char name[SMBUF];
(void)strcpy(name, group);
address[0] = '\0';
...
</snip>
Why address[SMBUF] is declared as static, if this is cut
to null string in the line address[0] = '\0'.
P.K.
--
makler@man.torun.pl
--
Piotr Klaban
--
makler@man.torun.pl
Technical Details
Message-ID:
<6fangr$o2g$1@flis.man.torun.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.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <6fangr$o2g$1@flis.man.torun.pl> Subject: innd - source q1 Date: Wed, 25 Mar 1998 00:00:00 +0000 From: makler@man.torun.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.mbox.zip!not-for-mail X-Deja-AN: 337489440 Organization: Nicholas Copernicus University User-Agent: tin/pre-1.4-980105 (UNIX) (SunOS/5.5 (sun4d)) Newsgroups: news.software.nntp