17 lines
322 B
C
17 lines
322 B
C
|
#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);
|
||
|
}
|
||
|
|