VAX-C question on passwords
Stacy L Ramirez
seaotter at athena.mit.edu
Sat Aug 25 08:06:21 AEST 1990
Hello again!
I am looking (without access to decent manuals, of course :-( for
the VMS/VAX-C equivalent of the following unix C code:
if (( pp = getpwuid(getuid()) == NULL ) {
pwdir = "???";
login = "???";
}
else {
pwdir = pp->pw_dir;
login = pp->pw_name;
}
)) Any help is appreciated.
Side Note: I am slowly building a file of #defines useful in porting
unix c-code to VAX/VMS. It includes such things as #define _begx _beg_x
and so forth for procedures that use curses _win_st structure, and
so on. It #includes <unixlib.h> and <unixio.h> automatically. Any
suggestions for other stuff to put in there?
Thanks,
Mike
____Mike_Zraly____________________________________________________________
| obligatory address : c/o seaotter at athena.mit.edu |
| obligatory disclaimer : My views don't represent anyone but me |
| obligatory quote : Nothing takes the taste out of peanut |
| butter quite like unrequited love. |
| -- Charlie Brown |
:________________________________________________________________________:
More information about the Comp.lang.c
mailing list