Home | History | Annotate | Line # | Download | only in 060sp
dotest.c revision 1.1
      1  1.1  is #include <stdio.h>
      2  1.1  is 
      3  1.1  is void print_str(const char *s);
      4  1.1  is void print_num(const int);
      5  1.1  is void itest(void);
      6  1.1  is void ftest1(void);
      7  1.1  is void ftest2(void);
      8  1.1  is void ftest3(void);
      9  1.1  is 
     10  1.1  is void
     11  1.1  is print_str(s)
     12  1.1  is 	const char *s;
     13  1.1  is {
     14  1.1  is 	printf("%s", s);
     15  1.1  is 	fflush(stdout);
     16  1.1  is }
     17  1.1  is 
     18  1.1  is void
     19  1.1  is print_num(i)
     20  1.1  is 	int i;
     21  1.1  is {
     22  1.1  is 	printf("%d", i);
     23  1.1  is 	fflush(stdout);
     24  1.1  is }
     25  1.1  is 
     26  1.1  is int
     27  1.1  is main()
     28  1.1  is {
     29  1.1  is 	itest();
     30  1.1  is 	ftest1();
     31  1.1  is 	ftest2();
     32  1.1  is #if 0
     33  1.1  is 	/*
     34  1.1  is 	 * We would need a special kernel, that clears the exception condition
     35  1.1  is 	 * and does RTE, to run this.
     36  1.1  is 	 */
     37  1.1  is 	ftest3();
     38  1.1  is #endif
     39  1.1  is 	exit (0);
     40  1.1  is }
     41