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

  1. Path: sparky!uunet!mcsun!uknet!ox-prg!oxuniv!rohl
  2. From: rohl@vax.oxford.ac.uk
  3. Newsgroups: comp.unix.programmer
  4. Subject: A Programming Problem!
  5. Message-ID: <1992Aug12.123152.8226@vax.oxford.ac.uk>
  6. Date: 12 Aug 92 11:31:52 GMT
  7. Organization: Oxford University VAX 6620
  8. Lines: 7
  9.  
  10. I am writing a program in C under UNIX and need to find out the name of
  11. the directory from which a program was run.  This is because the program
  12. needs to open a text file in its directory which contains help.  I
  13. don't think that I can find this in ANSI C and I'm not very familiar
  14. with UNIX systems calls.
  15.   Thanks for any help
  16.      Andrew Rohl
  17.