466
|
1 <refentry id="defdrive">
|
|
2 <refnamediv>
|
468
|
3 <refname>Defdrive</refname>
|
|
4 <refpurpose>get default system drive</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
552
|
10 <funcdef>char *<function>defdrive</function></funcdef>
|
634
|
11 <void/>
|
466
|
12 </funcprototype>
|
|
13 </funcsynopsis>
|
|
14
|
|
15 </refsynopsisdiv>
|
|
16
|
|
17 <refsect1><title>Description</title>
|
|
18 <para>
|
552
|
19 A call to defdrive returns a pointer to a string containing the
|
|
20 name of the default system drive. The method used is to
|
|
21 consult the "Init" module for the default directory name. The
|
|
22 name is copied to a static data area and a pointer to it is
|
|
23 returned.
|
466
|
24 </para>
|
|
25 </refsect1>
|
552
|
26
|
|
27 <refsect1><title>Diagnostics</title>
|
|
28 <para>
|
|
29 -1 is returned if the "Init" module cannot be linked to.
|
|
30 </para>
|
|
31 </refsect1>
|
|
32
|
466
|
33 </refentry>
|