OSF DCE Application Development Guide--Core Components
Writing Internationalized RPC Applications
tet_result(TET_DCE_FAIL);
}
fp_out = fopen("./i18n_tags_fixed_result_file", "w");
if (fp_out == NULL)
{
printf("i18n_result_file open failed\n");
tet_result(TET_DCE_FAIL);
}
rpc_num = 1;
while (!feof(fp_in))
{
(void)fgets((char *)net_string, SIZE, fp_in);
temp_status = cs_fixed_trans(bind_handle, net_string, loc_string);
if (temp_status != rpc_s_ok)
{
dce_error_inq_text(temp_status, err_buf, (int *)&status);
printf("FAILED %ld MSG: %s\n", (unsigned long)temp_status, \
err_buf);
}
else
{
printf("PASSED rpc #%d\n", rpc_num++);
(void)fputs((char *)loc_string, fp_out);
(void)fputs("0, fp_out);
}
}
fclose(fp_in);
fclose(fp_out);
return;
}
124245 Tandem Computers Incorporated 15− 37