home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3975 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!kurango!gucis!aroll
  3. From: aroll@gucis.cit.gu.edu.au (Ashley Roll)
  4. Subject: expanding ~'s in a directory name.
  5. Message-ID: <1992Jul29.012629.14000@gucis.cit.gu.edu.au>
  6. Organization: Griffith University, Brisbane, Australia.
  7. Date: Wed, 29 Jul 92 01:26:29 GMT
  8. Lines: 25
  9.  
  10. I have a program that I'm writing in C in the UNIX environment and I have come
  11. to a part where I need to get a directory name that the program will change 
  12. into. 
  13.  
  14. My problem is how do I expand ~'s. I want to expand then the way that csh does.
  15.  
  16. Has anyone written or got code that will do this that I can use? Or is there
  17. a library function that will do this.
  18.  
  19. Thanks in advance...
  20.  
  21. Cheers,
  22. Ashley Roll.
  23.  
  24.  
  25. -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
  26.   Ashley Roll - aroll@gucis.cit.gu.edu.au   Griffith University, Australia
  27. -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
  28. Lie: a very poor substitute for the truth, but the only one discovered to date.
  29.                                    - Unknown.
  30.  
  31.                         - - - - - - - - - - - - - -
  32.   The thoughts, ideas and opinions expressed herein are my own and as such  
  33.     are completly correct, I will however respect your right to be wrong. 
  34. -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
  35.