#include <stdio.h>
#include <stdlib.h>
#include <pwd.h>

int
main(void)
{
    struct passwd *pwd;

    setpwent();
    while ((pwd = getpwent()) != NULL)
        printf("%5ld %s\n", (long) pwd->pw_uid, pwd->pw_name);
    endpwent();

    exit(EXIT_SUCCESS);
}
