2002-10-11 20:45:31 +04:00
|
|
|
#include <stdio.h>
|
2002-10-16 08:40:21 +04:00
|
|
|
#include <stdlib.h>
|
2002-10-11 20:45:31 +04:00
|
|
|
#include "module1.h"
|
|
|
|
#include "module2.h"
|
|
|
|
#include "uselib.h"
|
|
|
|
|
|
|
|
int register_module (const char *name)
|
|
|
|
{
|
|
|
|
printf ("register_module was called by module '%s'\n", name);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main ()
|
|
|
|
{
|
|
|
|
printf ("start\n");
|
|
|
|
printf ("at first, n_operations = %d\n", n_operations);
|
|
|
|
printf ("Module name is '%s'\n", module_name);
|
|
|
|
int a=5, b=12;
|
|
|
|
int c = operate (a, b);
|
|
|
|
printf ("operate(%d,%d) = %d\n", a, b, c);
|
|
|
|
int d = operate (a, c);
|
|
|
|
printf ("operate(%d,%d) = %d\n", a, c, d);
|
|
|
|
printf ("stop\n");
|
|
|
|
printf ("at end, n_operations = %d\n", n_operations);
|
2002-10-16 08:07:58 +04:00
|
|
|
exit(77);
|
2002-10-11 20:45:31 +04:00
|
|
|
}
|