Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Functions pointers and stuff. Message-ID: <1989Mar29.204918.3882@utzoo.uucp> Organization: U of Toronto Zoology References: <1715@leah.Albany.Edu> <3182@goofy.megatest.UUCP> <301@oha.UUCP> Date: Wed, 29 Mar 89 20:49:18 GMT In article <301@oha.UUCP> tony@oha.UUCP (Tony Olekshy) writes: >And from the SVID (quasi-portable, if you have SV or Xenix or ?): ... > if (nlist(*argv, nameinfo) == -1) { The problem here is the assumption that argv[0] is a full pathname for the program. In general it's not, and finding the binary is not a trivial exercise. -- Welcome to Mars! Your | Henry Spencer at U of Toronto Zoology passport and visa, comrade? | uunet!attcan!utzoo!henry henry@zoo.toronto.edu