// append a blank record to the database specified
// by the command-line argument

#include <stdio.h>
#include <dos.h>
#include <string.h>
#include "dbftable.h"

int main(int argc, char **argv)
{
  if (argc < 2)
  {
    fprintf(stderr,
      "APPENDBLANK file\n"
      "\n"
      "appends a blank record to the specified file.\n");
    return 1;
  }
  dbf_table t;
  if (!t.open(argv[1], DBF_APPEND))
  {
    fprintf(stderr, "Can't open file %s", argv[1]);
    return 1;
  }
  t.append();
  t.close();
}


