#include <stdio.h>#include <pwd.h>Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
|
||||||||||||
|
Definition at line 23 of file pwcat.c. References NULL. 00026 { 00027 struct passwd *p; 00028 00029 while ((p = getpwent()) != NULL) 00030 printf("%s:%s:%ld:%ld:%s:%s:%s\n", 00031 p->pw_name, p->pw_passwd, (long) p->pw_uid, 00032 (long) p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell); 00033 00034 endpwent(); 00035 return 0; 00036 }
|