The program sample3 is called in this way: sample3
dvz1
Name and transfer admission to the remote system are then queried in a dialog.
The program reads the entries in directory dir1 of the remote system and outputs the list on screen. The directory must be specified as an absolute path name, or as relative to the HOME directory (see "File transfer") of the user or login name specified in the admission profile in the remote system. Up to 10 information entries are output in this example, even if the directory specified contains more than 10 files/directories.
The program is structured as follows:
The ft_showdir() function reads the information relating to the specified directory in the remote system.
A buffer is provided for this purpose, which is capable of holding the information on a total of 10 files or directories.
The number of entries is also supplied.