Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!lethe!geac!yunexus!davecb From: davecb@yunexus.YorkU.CA (David Collier-Brown) Newsgroups: comp.unix.questions Subject: Re: Get process name w/o using argv[0] in C function? Message-ID: <13476@yunexus.YorkU.CA> Date: 4 Aug 90 02:03:45 GMT References: <9220003@hpldsla.sid.hp.com> <3802@auspex.auspex.com> <1990Aug2.143551.7104@specialix.co.uk> Organization: York U. Computing Services Lines: 16 jonb@specialix.co.uk (Jon Brawn) writes: >Try this sort of thing: [function that saves argv[0] in a static] Er, that substitutes a globally callable function for a globally referable variable. Net gain? more code to do the same thing, value is read-only. Looks like a bad tradeoff unless you have an imposed religious requirement to avoid global variables... --dave -- David Collier-Brown, | davecb@Nexus.YorkU.CA, ...!yunexus!davecb or 72 Abitibi Ave., | {toronto area...}lethe!dave Willowdale, Ontario, | "And the next 8 man-months came up like CANADA. 416-223-8968 | thunder across the bay" --david kipling