Revision: 56978
http://sourceforge.net/p/brlcad/code/56978
Author: tbrowder2
Date: 2013-08-20 11:04:48 +0000 (Tue, 20 Aug 2013)
Log Message:
-----------
prepare for use in auto-man-page process
Modified Paths:
--------------
brlcad/trunk/src/util/dsp_add.c
Modified: brlcad/trunk/src/util/dsp_add.c
===================================================================
--- brlcad/trunk/src/util/dsp_add.c 2013-08-20 08:22:12 UTC (rev 56977)
+++ brlcad/trunk/src/util/dsp_add.c 2013-08-20 11:04:48 UTC (rev 56978)
@@ -37,9 +37,21 @@
/* declarations to support use of bu_getopt() system call */
-char *options = "h?";
-char *progname = "(noname)";
+const char optstring[] = "h?";
+char *progname = "dsp_add";
+const char usage[] = "Usage: %s dsp_1 dsp_2 > dsp_3\n";
+/* purpose: combine two dsp files
+ *
+ * description: Combines two dsp files (which are binary files comprised of
+ * network unsigned shorts). The two files must be of identical size. The
result
+ * is a file where each cell's height is the total of the heights of the same
+ * cell in the input files.
+ *
+ * see_also: dsp(5) asc2dsp(1) cv(1)
+ *
+ */
+
#define ADD_STYLE_INT 0
#define ADD_STYLE_FLOAT 1
int style = ADD_STYLE_INT;
@@ -51,7 +63,7 @@
{
if (s) (void)fputs(s, stderr);
- (void) fprintf(stderr, "Usage: %s dsp_1 dsp_2 > dsp_3\n",
+ (void) fprintf(stderr, usage,
progname);
bu_exit (1, NULL);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits