[comp.lang.c] getting home directories

gaumondp@JSP.UMontreal.CA (Gaumond Pierre) (04/16/91)

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@JSP.UMontreal.CA
Services Informatiques, Universite de Montreal. | gaumondp@centrcn.UMontreal.CA
C.P. 6128, Succursale "A", Montreal,            |
Quebec, Canada.   H3C 3J7                       |