|
|
1.1 ! root 1: #define MAINLINE ! 2: #include "parms.h" ! 3: #include "structs.h" ! 4: ! 5: #ifdef RCSIDENT ! 6: static char rcsid[] = "$Header: nfdump.c,v 1.7.0.1 85/10/09 18:07:40 notes Rel $"; ! 7: #endif RCSIDENT ! 8: ! 9: main (argc, argv) ! 10: int argc; ! 11: char **argv; ! 12: { ! 13: int i; ! 14: if (argc != 2) ! 15: { ! 16: printf ("Usage: %s notesfile\n", argv[0]); ! 17: exit (1); ! 18: } ! 19: ! 20: startup (argc, argv); ! 21: ! 22: /* ! 23: * the "-" is vestigal from the days when this routine ! 24: * accepted a file. we force it out stdout now. ! 25: * it would be nice to have /dev/stdout type names ! 26: * or to merely change the arg to be a file descriptor ! 27: */ ! 28: i = dumpnf (argv[1], "-"); ! 29: fprintf (stderr, "dumpnf returned %d\n", i); ! 30: exit (0); ! 31: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.