home *** CD-ROM | disk | FTP | other *** search
- /**************** driver.c ************************************/
- #include <stdio.h>
- #define DEBUG
- #include "debug.h"
-
- func2()
- {
- int small;
- long big;
- TS("enter func2","--------------------------------------");
- for(small = 0, big = 0l; small <5; small++){
- big +=small *10;
- TI("small_number:",small);
- TL("big_number:",big);
- }
- TS("exit func2","--------------------------------------");
- }
-
- func1()
- {
- char a ='A';
- int j= 123;
- int *j_ptr = &j;
- long k = 456789;
- float f= 12.978;
-
- static char string[] = {"hello world"};
- TS("enter func1","----------------------------------------");
- TC("character test a",a);
- TI("interger test",j);
- TL("long test",k);
- TU("unsigned test",j_ptr);
- TF("float_test",f);
- TD("double test",12345678.12345678);
- TS("string test",string);
- TS("exit func1","-------------------------------------------");
- }
-
- main()
- {
- printf("debug driver version 02 start\n");
- printf("Press ^Z to start trace\n");
- inkey();
- func1();
- func2();
- printf("debug driver end\n");
- }
-