summaryrefslogtreecommitdiff
path: root/examples/Misc/test_get_opt.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
commitd9661aebab28abc0ec4fb1e716170d347d56c168 (patch)
treeecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /examples/Misc/test_get_opt.cpp
parentea0d28240863caf437a18071bfd03e7b146c5ade (diff)
downloadATCD-unlabeled-4.3.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
Diffstat (limited to 'examples/Misc/test_get_opt.cpp')
-rw-r--r--examples/Misc/test_get_opt.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/examples/Misc/test_get_opt.cpp b/examples/Misc/test_get_opt.cpp
deleted file mode 100644
index c68928b6e57..00000000000
--- a/examples/Misc/test_get_opt.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-// $Id$
-
-// Test the ACE_Get_Opt class.
-
-#include "ace/Get_Opt.h"
-
-
-int
-main (int argc, char *argv[])
-{
- ACE_Get_Opt get_opt (argc, argv, "ab:cd:ef:gh:");
- int c;
-
- while ((c = get_opt ()) != EOF)
- switch (c)
- {
- case 'a':
- ACE_DEBUG ((LM_DEBUG, "got a\n"));
- break;
- case 'b':
- ACE_DEBUG ((LM_DEBUG, "got b with arg %s\n", get_opt.optarg));
- break;
- case 'c':
- ACE_DEBUG ((LM_DEBUG, "got c\n"));
- break;
- case 'd':
- ACE_DEBUG ((LM_DEBUG, "got d with arg %s\n", get_opt.optarg));
- break;
- case 'e':
- ACE_DEBUG ((LM_DEBUG, "got e\n"));
- break;
- case 'f':
- ACE_DEBUG ((LM_DEBUG, "got f with arg %s\n", get_opt.optarg));
- break;
- case 'g':
- ACE_DEBUG ((LM_DEBUG, "got g\n"));
- break;
- case 'h':
- ACE_DEBUG ((LM_DEBUG, "got h with arg %s\n", get_opt.optarg));
- break;
- default:
- ACE_DEBUG ((LM_DEBUG, "got %c, which is unrecognized!\n", c));
- break;
- }
-
- for (int i = get_opt.optind; i < argc; i++)
- ACE_DEBUG ((LM_DEBUG, "optind = %d, argv[optind] = %s\n",
- i, argv[i]));
-
- return 0;
-}