Xref: utzoo comp.os.vms:29525 comp.lang.c:31349 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!daemon From: seaotter@athena.mit.edu (Stacy L Ramirez) Newsgroups: comp.os.vms,comp.lang.c,vmsnet.misc Subject: VAX-C question on passwords Message-ID: <1990Aug24.220621.2506@athena.mit.edu> Date: 24 Aug 90 22:06:21 GMT Sender: daemon@athena.mit.edu (Mr Background) Distribution: na Organization: Massachusetts Institute of Technology Lines: 33 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 and automatically. Any suggestions for other stuff to put in there? Thanks, Mike ____Mike_Zraly____________________________________________________________ | obligatory address : c/o seaotter@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 | :________________________________________________________________________: