Path: utzoo!mnetor!uunet!hsi!palmer From: palmer@hsi.UUCP (Mike Palmer) Newsgroups: comp.unix.questions Subject: Re: How does a program get its path name? Message-ID: <873@hsi.UUCP> Date: 7 Mar 88 15:17:32 GMT References: <11923@brl-adm.ARPA> <4210002@hpcllf.HP.COM> Organization: Health Systems Intl., New Haven, CT Lines: 13 In article <4210002@hpcllf.HP.COM>, jws@hpcllf.HP.COM (John Stafford) writes: > The name a program was invoked under is in argv[0]; that may (or more > likely may not) contain the "full" path name. this can be combined with the info obtained by calling the function getwd(pathname) char *pathname; -- Mike Palmer {uunet,ihnp4,yale}!hsi!palmer Health Systems International New Haven, CT 06511