12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- /*====================================================================*
- *
- * main.c - template program;
- *
- *
- *--------------------------------------------------------------------*/
- /*====================================================================*
- * system header files;
- *--------------------------------------------------------------------*/
- #include <stdio.h>
- /*====================================================================*
- * custom header files;
- *--------------------------------------------------------------------*/
- #include "../tools/getoptv.h"
- #include "../tools/putoptv.h"
- #include "../tools/version.h"
- #include "../tools/error.h"
- /*====================================================================*
- * custom source files;
- *--------------------------------------------------------------------*/
- #ifndef MAKEFILE
- #include "../tools/getoptv.c"
- #include "../tools/putoptv.c"
- #include "../tools/version.c"
- #include "../tools/error.c"
- #endif
- /*====================================================================*
- *
- * void function (void);
- *
- *--------------------------------------------------------------------*/
- void function (void)
- {
- return;
- }
- /*====================================================================*
- *
- * int main (int argc, char const * argv []);
- *
- *--------------------------------------------------------------------*/
- int main (int argc, char const * argv [])
- {
- static char const * optv [] =
- {
- "",
- "",
- "Template Program",
- (char const *) (0)
- };
- signed c;
- while (~ (c = getoptv (argc, argv, optv)))
- {
- switch (c)
- {
- default:
- break;
- }
- }
- argc -= optind;
- argv += optind;
- if (! argc)
- {
- function ();
- }
- while ((argc) && (* argv))
- {
- function ();
- argc--;
- argv++;
- }
- exit (0);
- }
|