home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!kurango!gucis!aroll
- From: aroll@gucis.cit.gu.edu.au (Ashley Roll)
- Subject: expanding ~'s in a directory name.
- Message-ID: <1992Jul29.012629.14000@gucis.cit.gu.edu.au>
- Organization: Griffith University, Brisbane, Australia.
- Date: Wed, 29 Jul 92 01:26:29 GMT
- Lines: 25
-
- I have a program that I'm writing in C in the UNIX environment and I have come
- to a part where I need to get a directory name that the program will change
- into.
-
- My problem is how do I expand ~'s. I want to expand then the way that csh does.
-
- Has anyone written or got code that will do this that I can use? Or is there
- a library function that will do this.
-
- Thanks in advance...
-
- Cheers,
- Ashley Roll.
-
-
- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- Ashley Roll - aroll@gucis.cit.gu.edu.au Griffith University, Australia
- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- Lie: a very poor substitute for the truth, but the only one discovered to date.
- - Unknown.
-
- - - - - - - - - - - - - - -
- The thoughts, ideas and opinions expressed herein are my own and as such
- are completly correct, I will however respect your right to be wrong.
- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-