putpwent(3) Library Functions Manual putpwent(3) putpwent - Standard C library (libc, -lc) #include #include #include int putpwent(const struct passwd *restrict p, FILE *restrict stream); glibc (. feature_test_macros(7)): putpwent(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _SVID_SOURCE putpwent() p , stream. passwd : struct passwd { char *pw_name; /* */ char *pw_passwd; /* */ uid_t pw_uid; /* */ gid_t pw_gid; /* */ char *pw_gecos; /* */ char *pw_dir; /* */ char *pw_shell; /* */ }; The putpwent() function returns 0 on success. On failure, it returns -1, and errno is set to indicate the error. EINVAL (NULL) . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |putpwent() | | MT-Safe locale | +----------------------------+----------------------------------------------------------+--------------------------+ . SVr4. endpwent(3), fgetpwent(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), setpwent(3) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux man-pages 6.12 23 2024 . putpwent(3)