File: FLexpHome.html

package info (click to toggle)
libtsp 2r8-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 4,908 kB
  • ctags: 1,409
  • sloc: ansic: 12,525; sh: 1,044; makefile: 164
file content (52 lines) | stat: -rw-r--r-- 1,348 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<HTML>
<HEAD>
<TITLE>TSP (libtsp/FL) - FLexpHome</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>FLexpHome</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int FLexpHome (const char Fname[], char Ename[])
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Expand the home directory specification for a file
</DL>
<H4>Description</H4>
This routine takes an input file name and replaces instances of "~" or
"~USER" which appear as the first component of a directory specification.
The first form is replaced by the home directory of the current user and the
second form is replaced by the home directory of the named user.  If the home
directory cannot be determined, for instance if the user is unknown, the
output file name is copied from the input file name.
<H4>Parameters</H4>
<DL>
<DT>
&lt;-  int FLexpHome
<DD>
Number of characters in the output string
<DT>
 -&gt; const char Fname[]
<DD>
Input character string specifying a file name path
<DT>
&lt;-  char Ename[]
<DD>
Output string with the home directory expanded.  This string is at most
FILENAME_MAX characters long not including the terminating null
character.
</DL>
<H4>Author / revision</H4>
P. Kabal  Copyright (C) 1997
/ Revision 1.13  1997/03/06
<H4>See Also</H4>
<A HREF="FLdirName.html">FLdirName</A>,
<A HREF="FLhomeDir.html">FLhomeDir</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>