www.pudn.com > PocketC.zip > todo2.c


// ToDo reader 
int i, nRecs, rc; 
pointer todo; 
 
main() { 
  // allocate memory for the data 
  todo = malloct(1, "iiss"); 
   
  // attempt to open the database 
  if (!dbopen("ToDoDB")) { 
    puts("Unable to open ToDo database"); 
    return; 
  } 
 
  // read and display all records 
  nRecs = dbnrecs(); 
  puts("NumRecs: " + nRecs + "\n"); 
  for (i=0;i