Functions pointers and stuff.
Henry Spencer
henry at utzoo.uucp
Thu Mar 30 06:49:18 AEST 1989
In article <301 at oha.UUCP> tony at 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 at zoo.toronto.edu
More information about the Comp.lang.c
mailing list