|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 490 (0x1ea) Types: TextFile Names: »getlogn.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPSUBS/getlogn.c«
/* ** Compile: cc -O -c -q getlogn.c; ar r empsub.a getlogn.o */ char * getlogn(uid) /* return logname of uid */ { register char *cp; static char buf[128] = { '\0' }; static int lastuid = 0; if (*buf != '\0' && lastuid == uid && uid != 0) return(buf); if (getpw( uid, buf) != 0) return("????"); for (cp = buf; *cp && *cp != ':'; cp++); *cp = '\0'; return(buf); }