putpwent.c\passwd\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/passwd/putpwent.c
blob: 80fbf3843d5e5909f1b6d74644cd1e11ed050b2e (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <pwd.h>
#include <stdio.h>
int putpwent(const struct passwd *pw, FILE *f)
{
	return fprintf(f, "%s:%s:%d:%d:%s:%s:%s\n",
		pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid,
		pw->pw_gecos, pw->pw_dir, pw->pw_shell)<0 ? -1 : 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 23:55:52 +0000

AltStyle によって変換されたページ (->オリジナル) /