]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/Extras/libg/gtlogn.c
Replaced use of snprintf() with memcpy()/memmove().
[nmh] / docs / historical / mh-jun-1982 / Extras / libg / gtlogn.c
1 #ifdef COMMENT
2 Proprietary Rand Corporation, 1981.
3 Further distribution of this software
4 subject to the terms of the Rand
5 license agreement.
6 #endif
7
8 #include "libg.h"
9
10 char *getlogn(uid)
11 {
12 static char name[20];
13 register char *np, *bp;
14
15 if (getubuf(uid)<=0) return(NULSTR);
16
17 np = name; bp = u_buf;
18 while( (*np++ = *bp++) != ':');
19 *--np = '\0';
20 return(name);
21 }