(show_news): New.
(show): Use it to implement show news.
This commit is contained in:
parent
297ee5eab0
commit
1bca66c061
4 changed files with 28 additions and 5 deletions
|
@ -57,6 +57,7 @@
|
|||
#include "nat.h"
|
||||
#include "prototypes.h"
|
||||
#include "nsc.h"
|
||||
#include "news.h"
|
||||
|
||||
struct look_list {
|
||||
union {
|
||||
|
@ -625,3 +626,20 @@ show_item(int tlev)
|
|||
ip->i_melt_denom, ip->i_name);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
show_news(int tlev)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
pr("id category good will\n");
|
||||
pr(" messsages\n");
|
||||
|
||||
for (i = 1; i < N_MAX_VERB + 1; i++) {
|
||||
pr("%-2d %-20.20s %4d\n", rpt[i].r_uid,
|
||||
page_headings[rpt[i].r_newspage], rpt[i].r_good_will);
|
||||
|
||||
for (j = 0; j < NUM_RPTS; j++)
|
||||
pr(" %s\n", rpt[i].r_newstory[j]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue