_main.c.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. _main.c
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='MACPasswords.c.html' title=' MACPasswords.c '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='MakeRule.c.html' title=' MakeRule.c '>NEXT</a>]
  19. </div>
  20. <pre>
  21. /*====================================================================*
  22. *
  23. * main.c - template program;
  24. *
  25. *.
  26. *:
  27. *;
  28. *
  29. *--------------------------------------------------------------------*/
  30. /*====================================================================*
  31. * system header files;
  32. *--------------------------------------------------------------------*/
  33. #include &lt;stdio.h&gt;
  34. /*====================================================================*
  35. * custom header files;
  36. *--------------------------------------------------------------------*/
  37. #include &quot;../tools/getoptv.h&quot;
  38. #include &quot;../tools/putoptv.h&quot;
  39. #include &quot;../tools/version.h&quot;
  40. #include &quot;../tools/error.h&quot;
  41. /*====================================================================*
  42. * custom source files;
  43. *--------------------------------------------------------------------*/
  44. #ifndef MAKEFILE
  45. #include &quot;../tools/getoptv.c&quot;
  46. #include &quot;../tools/putoptv.c&quot;
  47. #include &quot;../tools/version.c&quot;
  48. #include &quot;../tools/error.c&quot;
  49. #endif
  50. /*====================================================================*
  51. *
  52. * void function (void);
  53. *
  54. *
  55. *--------------------------------------------------------------------*/
  56. void function (void)
  57. {
  58. return;
  59. }
  60. /*====================================================================*
  61. *
  62. * int main (int argc, char const * argv []);
  63. *
  64. *
  65. *--------------------------------------------------------------------*/
  66. int main (int argc, char const * argv [])
  67. {
  68. static char const * optv [] =
  69. {
  70. &quot;&quot;,
  71. &quot;&quot;,
  72. &quot;Template Program&quot;,
  73. (char const *) (0)
  74. };
  75. signed c;
  76. while ((c = getoptv (argc, argv, optv)) != -1)
  77. {
  78. switch (c)
  79. {
  80. default:
  81. break;
  82. }
  83. }
  84. argc -= optind;
  85. argv += optind;
  86. if (!argc)
  87. {
  88. function ();
  89. }
  90. while ((argc) &amp;&amp; (* argv))
  91. {
  92. function ();
  93. argc--;
  94. argv++;
  95. }
  96. exit (0);
  97. }
  98. </pre>
  99. <div class='footerlink'>
  100. [<a href='MACPasswords.c.html' title=' MACPasswords.c '>PREV</a>]
  101. [<a href='toolkit.html' title=' Index '>HOME</a>]
  102. [<a href='MakeRule.c.html' title=' MakeRule.c '>NEXT</a>]
  103. </div>
  104. </body>
  105. </html>