home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!ieunet!!bsullivn
- From: bsullivn@sc.sni.ie (Bryan O'Sullivan)
- Newsgroups: comp.unix.programmer
- Subject: Re: A Programming Problem!
- Message-ID: <156@sc.sni.ie>
- Date: 13 Aug 92 12:58:16 GMT
- Article-I.D.: sc.156
- References: <1992Aug12.123152.8226@vax.oxford.ac.uk>
- Reply-To: bryan@sc.sni.ie
- Organization: Siemens-Nixdorf Software Development Centre, Dublin
- Lines: 17
- X-Newsreader: Tin 1.1 PL3
-
-
-
- rohl@vax.oxford.ac.uk writes:
- : I am writing a program in C under UNIX and need to find out the name of
- : the directory from which a program was run. This is because the program
- : needs to open a text file in its directory which contains help. I
- : don't think that I can find this in ANSI C and I'm not very familiar
- : with UNIX systems calls.
-
- As has been discussed elsewhere of late, this is not possible. It is
- quite likely that any methods you try will give an incorrect answer.
-
- -- Bryan
-
- --
- Bryan O'Sullivan +353-1-767551 x225
- Siemens-Nixdorf Informationssysteme AG bryan@sc.sni.ie
- Software Development Centre "Theory like mist on eyeglasses.
- Dublin Obscure facts." -- Charlie Chan
-