
    /* Start Barney */
    if (Begin(ctTRNLOG|ctENABLE) == 0) {
      printf("Error beginning transaction: %d\n", uerr_cod);
    }
    oops = AddName ("Barney", "Rubble");
    oops |= AddAddress ("Box 432", "1244 Jurassic Park", "Bedrock", "PL", "12345", "Home");
    oops |= AddPhone ("213-555-5555", "Home");
    oops |= AddPhone ("213-555-4444", "Work");

    if (oops) {
      printf ("Transaction Failed!. Error is %d\n", oops);
      Abort ();                 /* Stop the transaction */
      StopUser ();              /* Close out the connection */
      ctrt_exit(4);
    }

    if (Commit(ctFREE)) {
      printf("Error committing transaction: %d.\n", uerr_cod);
    }

    printf ("LatestIndex is %ld\n", LatestIndex);
    /* End Barney */
