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.
libparzel-shadow/main.c

17 lines
322 B
C
Raw Normal View History

2023-10-07 07:12:30 +00:00
#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);
}