1
0
Files
irix-657m-src/eoe/cmd/ns/tests/getspent.c
2022-09-29 17:59:04 +03:00

16 lines
410 B
C

#include <stdio.h>
#include <shadow.h>
main(int argc, char **argv)
{
struct spwd *sp;
while (sp = getspent()) {
printf("name = %s, passwd = %s, last-change = %d, min = %d\n",
sp->sp_namp, sp->sp_pwdp, sp->sp_lstchg, sp->sp_min);
printf("max = %d, warn = %d, inactive = %d, expire = %d\n",
sp->sp_min, sp->sp_warn, sp->sp_inact, sp->sp_expire);
printf("flags = 0x%x\n", sp->sp_flag);
}
}