static char *sccsid
= "@(#)list.c 1.8 (Berkeley) 7/6/87";
* List active newsgroups.
register FILE *active_fp
;
active_fp
= fopen(activefile
, "r");
printf("%d No list of newsgroups available.\r\n", ERR_FAULT
);
syslog(LOG_ERR
, "list: fopen %s: %m", activefile
);
printf("%d Newsgroups in form \"group high low y/n/m\".\r\n",
while (fgets(line
, sizeof(line
), active_fp
) != NULL
) {
if ((cp
= index(line
, '\n')) != NULL
)
if (ngmatch(strneql
, ALLBUT
,
(void) fclose(active_fp
);