/* unsea.c - Part of the unsea program. * Copyright 1992 by David W. Rankin, Jr. * * See "unsea.txt" for full copyright information applying * to all text in this package. * * * This file holds main(), and other main parts of unsea. */ /* include statements */ #include "unsea.h" /* Beginning of code */ struct starting_flags stflags; void main(int argc, char *argv[]) { extern struct starting_flags stflags; char newfilename[FILENAME_MAX+1];/* the place for the file to be created */ int i, j, /* generic counters */ arg_per_file; /* see its use */ /* start of code */ strcpy(newfilename,""); /* This initializes this string */ /* This is for use on THINK_C compilers only. */ #ifdef THINK_C argc=ccommand(&argv); #endif /*THINK_C*/ startupmesg(); if (argc==1) { help(); /* tell basics, then quit */ exit(EXIT_SUCCESS); } /* implied "else if (argc>=2)" */ for(i=1;i