Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37811210
en ru br
ALT Linux repos
S:9.4.0.24.75e248-alt1
5.0: 6.12-alt2
4.1: 6.11-alt1
4.0: 5.97-alt6
3.0: 5.3.1-alt0.4

Other repositories
Upstream:8.1pl3

Group :: System/Base
RPM: coreutils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#include <stdio.h>
#include <unistd.h>
#include <pwd.h>

extern const char *__progname;

int
main (int ac, char *const *av)
{
struct passwd *pw;

if (ac != 2)
{
fprintf (stderr, "Usage: %s <username>\n", __progname);
return 1;
}

pw = getpwnam (av[1]);
if (!pw)
return 1;

printf ("%u\n", pw->pw_uid);

return 0;
}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin