This repository has been archived on 2023-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
#include <libparzel_shadow.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
shadow_iterator_s iterator = shadow_new_iterator("/etc/shadow");
|
|
|
|
shadow_user_s user;
|
|
while(shadow_next_user(&iterator, &user))
|
|
{
|
|
printf("User's Name: %s\n", user.name);
|
|
}
|
|
shadow_cleanup(iterator);
|
|
}
|
|
|