Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!cbmvax!bj From: bj@cbmvax.commodore.com (Brian Jackson) Newsgroups: comp.sys.amiga.tech Subject: Re: CurrentDir Message-ID: <15091@cbmvax.commodore.com> Date: 11 Oct 90 17:55:40 GMT References: <1990Oct11.012013.24234@hoss.unl.edu> Reply-To: bj@cbmvax.commodore.com (Brian Jackson) Organization: Commodore, West Chester, PA Lines: 20 In article <1990Oct11.012013.24234@hoss.unl.edu> 252u3130@fergvax.unl.edu (Phil Dietz) writes: >I'm using Lattice 'C' and I'm changing the current directory in it. >Well, when the program quits, the SHELL path and the current directory >are off. I need to find out what the command is to read the name >of the current directory so I can chdir to it at the end of the program. > You don't say what version of Lattice you are using. The getcd() call is what you want. >Phil Dietz bj ----------------------------------------------------------------------- | Brian Jackson Software Engineer @ Commodore-Amiga Inc. GEnie: B.J. | | bj@cbmvax.commodore.com or ...{uunet|rutgers}!cbmvax!bj | | "Caught in the vice of heaven and earth, | | he turned his life into a cell" | -----------------------------------------------------------------------