#ifdef AIX_PROD
static char sccsid[] = "@(#)12  1.4  src/examples/pubsex/greet/greet_auto/client.c, examples.src, os2dce21.dss, 960602a.1 1/12/96 15:13:21";
/*
 *   COMPONENT_NAME: examples.src
 *
 *   FUNCTIONS: main
 *
 *   ORIGINS: 72
 *
 */
#endif /* AIX_PROD */


#include <stdlib.h>
#include <stdio.h>
#include <dce/dce_error.h>
#include "greet.h"

int main(int ac, char *av[])
{
    int                      i, MAX_PASS;
    char                     reply[STR_SZ];

    if (ac != 2)  {
        fprintf(stderr, "Usage: %s passes\n",av[0]);
        exit (1);
    }


    MAX_PASS = atoi(av[1]);
    printf("Passes: %d\n",MAX_PASS);

         for (i=1; i <= MAX_PASS; i++) {
             greet_rpc("Hello Server !", reply);
             printf("The Greet Server said: %s\n", reply);
             fflush(stdout);
         }
         return(0);

}

