OSF DCE Application Development Guide--Introduction and Style Guide

A Sample Application
print_manager_error(
char *caller, /* String identifying the routine that received the error. */
error_status_t status) /* the status we want to print the message for. */
{
dce_error_string_t error_string;
int print_status;
dce_error_inq_text(status, error_string, &print_status);
dce_svc_printf(MANAGER_ERROR_MSG, caller, error_string);
}
/****************************************************************************/
/* [27.VI.94] */
/* */
/* sample_client.c -- Client of "sample" interface. */
/* */
/* */
/* */
/* -77 cols- */
/****************************************************************************/
#include <stdio.h>
#include <string.h>
#include <dce/dce_error.h>
#include <dce/nbase.h>
#include <dce/rpc.h>
#include <dce/dce_msg.h>
#include <dce/dbif.h>
#include <dce/dce.h>
#include <dce/dce_cf.h>
#include <dce/dcesvcmsg.h>
#include <dce/svcremote.h>
#include <dce/sec_login.h>
#include <dce/pgo.h>
#include <dce/secidmap.h>
#include "sample.h"
#include "sample_bind.h"
/* Data structure for holding object entry names... */
typedef struct {
unsigned32 count;
unsigned_char_t *name[1];
} objectname_vector_t;
/* ANSI-C style prototypes for functions private to this module... */
int do_client_command_line(int,
char **,
unsigned32 *,
124246 Tandem Computers Incorporated A 79