]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/Extras/libg/gtubuf.c
Replaced use of snprintf() with memcpy()/memmove().
[nmh] / docs / historical / mh-jun-1982 / Extras / libg / gtubuf.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 getubuf(uid)
11 {
12 if (uid != last_uid || uid == 0)
13 if (getpw(uid,u_buf)) return(0);
14 last_uid = uid;
15 return(1);
16 }