/* File: recurse2.c
   Recursion doesn't always terminate.
*/



void recall(int depth) {
   int i ;

/* if (depth == 9) {
      printf("                  ") ;
      printf("*** Base Case depth = 9\n") ;
      return ;
   }
*/
   for (i = 0 ; i < depth ; i++) {
      printf("  ") ;
   }
   printf("Recursion depth = %d\n", depth) ;

   recall(depth+1) ;

   for (i = 0 ; i < depth ; i++) {
      printf("  ") ;
   }
   printf("Return from depth = %d\n", depth) ;
}

main() {
   recall(0) ;
}
