10 #include <my_global.h>
11 #include <my_pthread.h>
17 register int result, ix;
18 extern int factorial(
int);
19 my_thread_global_init();
23 DBUG_PROCESS (argv[0]);
24 for (ix = 1; ix < argc && argv[ix][0] ==
'-'; ix++) {
25 switch (argv[ix][1]) {
27 DBUG_PUSH (&(argv[ix][2]));
31 for (; ix < argc; ix++) {
32 DBUG_PRINT (
"args", (
"argv[%d] = %s", ix, argv[ix]));
33 result = factorial (atoi(argv[ix]));
34 printf (
"%d\n", result);