How does a program get its path name?
Mike Palmer
palmer at hsi.UUCP
Tue Mar 8 01:17:32 AEST 1988
In article <4210002 at hpcllf.HP.COM>, jws at 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
More information about the Comp.unix.questions
mailing list