Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > d0f84c65bfdfda037b021ed34815337c > files > 13

libmetakit-devel-2.4.9.7-9.0.mga1.i586.rpm

//  This command-line utility displays the data structure of a datafile
//  created with the Metakit library as a one-line description.

#include "mk4.h"

#include <stdio.h>

#if defined (macintosh)
#include /**/ <console.h>
#define d4_InitMain(c,v)  c = ccommand(&v)
#endif

/////////////////////////////////////////////////////////////////////////////
  
int main(int argc, char** argv)
{
#ifdef d4_InitMain
  d4_InitMain(argc, argv);
#endif

  if (argc != 2)
    fputs("Usage: STRUCT datafile", stderr);
  else
  {
    c4_Storage store (argv[1], false);
    puts(store.Description());
  }
    
  return 0;
}

/////////////////////////////////////////////////////////////////////////////