showpriv.c
./abermud/showpriv.c · 520 B
From the archive abermud-89.tar.gz
Download the archive « Back to the archive contents
#include "kernel.h"
#include "pflags.h"
#ifdef RCSID
static char RCS[] =
"$Header: showpriv.c,v 1.1 89/03/13 09:37:44 rsalz Exp $";
#endif /* RCSID */
show_priv()
{
int ct;
int c2;
if (pl1 == -1) {
bprintf("Who is that ?\n");
error();
return;
}
bprintf("Player : %s\n", pname(pl1));
bprintf("Privileges:\n");
for (c2 = 0, ct = 0; ct < 16; ct++) {
if (ptstflg(pl1, ct)) {
if (c2 % 6 == 5)
bprintf("\n");
bprintf("%s ", Pflags[ct]);
c2++;
}
}
bprintf("\n");
}