Revision: 44752
http://brlcad.svn.sourceforge.net/brlcad/?rev=44752&view=rev
Author: brlcad
Date: 2011-06-06 20:23:23 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
oop, ac > 1 .. don't prompt by default
Modified Paths:
--------------
brlcad/trunk/src/libbu/basenametester.c
Modified: brlcad/trunk/src/libbu/basenametester.c
===================================================================
--- brlcad/trunk/src/libbu/basenametester.c 2011-06-06 20:10:25 UTC (rev
44751)
+++ brlcad/trunk/src/libbu/basenametester.c 2011-06-06 20:23:23 UTC (rev
44752)
@@ -10,7 +10,8 @@
/* Test against basename UNIX tool */
-void automatic_test(const char *input)
+void
+automatic_test(const char *input)
{
char *ans, buf_input[1000];
@@ -39,7 +40,8 @@
}
-int main(int ac, char *av[])
+int
+main(int ac, char *av[])
{
char input[1000] = {0};
@@ -64,7 +66,7 @@
automatic_test(NULL);
/* user tests */
- if (ac > 0) {
+ if (ac > 1) {
printf("Enter a string:\n");
fgets(input, 1000, stdin);
if (strlen(input) > 0)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits