getting home directories

Gaumond Pierre gaumondp at JSP.UMontreal.CA
Wed Apr 17 01:51:30 AEST 1991


Suppose a C program has to reead the name of a file on another file and then
open it (with "fopen").

Now, suppose the name read has one of the forms:

   -  ~/dir/file
   -  ~user/dir/file

What tools do I have to interpret the ~ and ~user as home directories?
What tools can split path name in single components?

Pierre Gaumond.
-- 
Pierre Gaumond.                                 | gaumondp at JSP.UMontreal.CA
Services Informatiques, Universite de Montreal. | gaumondp at centrcn.UMontreal.CA
C.P. 6128, Succursale "A", Montreal,            |
Quebec, Canada.   H3C 3J7                       |



More information about the Comp.unix.questions mailing list