Article View: comp.unix.programmer
Article #169expanding ~'s in a directory name.
From: Ashley Roll
Date: Wed, 29 Jul 1992 01:26
Date: Wed, 29 Jul 1992 01:26
25 lines
1441 bytes
1441 bytes
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.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Technical Details
Message-ID:
<1992Jul29.012629.14000@gucis.cit.gu.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!kurango!gucis!arollShow Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer Path: arc1-ca.pugleaf.net!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