Listing 3

void myexit(void)
{
       char reply[11];

       if (proot_node != NULL) {
              printf("\n   The list still has nodes. Throw them away? ");
              scanf("%10s", reply);
              if (tolower(reply[0]) == 'n') {
                     return;
              }
       }

       exit(EXIT_SUCCESS);
}

/* End of File */