home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
makedce.zip
/
EXAMPLES.ZIP
/
examples
/
Array
/
array.c
< prev
next >
Wrap
Text File
|
1994-05-08
|
1KB
|
46 lines
/*
* COMPONENT_NAME: MakeDCE/examples/array/array.c
*
* FUNCTIONS:
*
* ORIGINS: 72
*
* OBJECT CODE ONLY SOURCE MATERIALS
*
*/
/*
* (c) Copyright 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
* ALL RIGHTS RESERVED
*/
#include <stdio.h>
#include <makedce/glue.h>
int client_aux(handle_t h, int passes);
int client_function(handle_t h, int passes);
#define CALLS_PER_PASS 10
main(int argc, char *argv[], char *envp[])
{
char *msg = "Array Application Completed";
int pass, passes=10, failures=0;
if (argc > 1)
passes = atoi(argv[1]);
if ((passes < 1) || (passes > 100))
passes = 10;
for (pass = 0; pass < passes ; pass++) {
printf("PASS %d\n", pass);
failures += client_function(IFBindingHandle(IFHandleI(0)), passes);
} /* endfor */
printf("%s: %d passes, %d failures\n", msg, passes, failures);
}
int client_function(handle_t h, int passes)
{
return(client_aux(h, passes));
}