FTAM/9000 Programmer's Guide

420 Chapter 10
Example Programs
Common Code Example
/*
**
** wait_parm_in
**
** DESCRIPTION:
** This routine sets up the parameter values and the expected
** outcome values for em_wait calls. This routine allows
** the test programs to specify which set of parameter values
** you want to set.
**
**
** PARAMETERS:
** OUTPUT:
** time : timeout value
** result : contains return_code field for em_wait
**
*/
void
wait_parm_in(time, result)
Em_t *time;
Api_rc *result;
{
/*
** Initialize “time” to infinite.
*/
*time = -1;
/*
** Initialize “result”.
*/
result-return_code = 9999;
result-vendor_code = 9999;
}
/*
**
** passwords_in
**
** DESCRIPTION:
** This routine assigns valid values to the file_passwords structure.
**
**
** PARAMETERS:
** Outputs:
** file_passwords : pointer to the Ft_file_passwords structure
**
*/
void
passwords_in(file_passwords)
struct Ft_file_passwords *file_passwords;
{