/* Kelly & Pohl Exercise 12.13, p. 426 */ /* */ /* Lone Leth Thomsen, 11. April 2003 */ #include #include int count_r(LINK l){ if (l == NULL) return 0; else return(1+ count_r(l->next )); }; int count_i(LINK l){ int i = 0; while (l != NULL){ i++; l = l->next ; }; return i; };