summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-15 18:33:15 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-15 18:33:15 +0000
commit403cdae49577e74ae64a824348e602e06b797563 (patch)
tree5fb5d108284fb3c864413c8116ba1865d7a77c15 /etc
parent8727a28ccceef41b322c7e73e1b4bf2da2daffb8 (diff)
downloadATCD-403cdae49577e74ae64a824348e602e06b797563.tar.gz
added main () declaration requirement, and usage message
Diffstat (limited to 'etc')
-rw-r--r--etc/ACE-guidelines.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/ACE-guidelines.html b/etc/ACE-guidelines.html
index d66e33e0d68..cd761108d04 100644
--- a/etc/ACE-guidelines.html
+++ b/etc/ACE-guidelines.html
@@ -47,6 +47,26 @@
<pre>
perl -pi -e 'if (! $o) {printf "// \$<!-- -->Id\$\n\n";}; $o = 1;' <em>file</em>
</pre><p>
+
+ <li>Every program should have a ``usage'' message. It should be
+ printed out if erroneous command line arguments, or a
+ <strong><code>-?</code></strong> command line argument, are
+ provided to the program.<p>
+
+ <li>The program <strong><code>main</code></strong> function should
+ always be declared with arguments, e.g.,
+ <pre>
+ int
+ main (int argc, char *argv[])
+ {
+ [...]
+
+ return 0;
+ }
+ </pre><p>
+
+ It should also return 0 on successful termination, and non-zero
+ otherwise.<p>
</ul>
<li><strong>Preprocessor</strong><p>