int main( void ) #endif { fprintf( stdout, "*** DOUBLE MATH TEST ***\n" ); domath(); fprintf( stdout, "*** END OF DOUBLE MATH TEST ***\n" ); exit( 0 ); }
int main( void ) #endif { #if __rtems__ rtems_test_begin(); #endif domath(); #if __rtems__ rtems_test_end(); #endif exit( 0 ); }
void permute(void* a, int l, int r) { int i; if (l == r) domath(); else { for (i = l; i <= r; i++) { swap((a+l), (a+i)); permute(a, l+1, r); // swap((a+l), (a+i)); //backtrack } } }