Newsgroups: news.software.b
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: Cnews artnum in active file
Message-ID: <1990Aug17.163627.2140@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <1990Aug16.185023.26200@squirrel.mh.nl> <1990Aug17.034849.17801@zoo.toronto.edu> <SS^%M2&@rpi.edu>
Date: Fri, 17 Aug 90 16:36:27 GMT

In article <SS^%M2&@rpi.edu> tale@turing.cs.rpi.edu (David C Lawrence) writes:
>... I think I will review the
>latest NNTP protocol for a way to put in "this group has n articles in
>it" information in it after a readdir and check for S_IFREG files.

You don't need to bother with the (relatively expensive) S_IFREG check,
actually, if you report an estimate rather than a guaranteed-accurate
number, and filter out non-numeric names.
-- 
It is not possible to both understand  | Henry Spencer at U of Toronto Zoology
and appreciate Intel CPUs. -D.Wolfskill|  henry@zoo.toronto.edu   utzoo!henry
