home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4276 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.2 KB

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