aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-12-06 19:18:44 +0000
committerMike Buland <eichlan@xagasoft.com>2007-12-06 19:18:44 +0000
commitee71b87313fa0af4d7deb98e4c76fcbedef1be4b (patch)
treef4a703899c7b058450f17c4f3c681f0e8096e892
parentcdddb1e4bc3230dc8c0bc522c613e709d0afbdff (diff)
downloadlibbu++-ee71b87313fa0af4d7deb98e4c76fcbedef1be4b.tar.gz
libbu++-ee71b87313fa0af4d7deb98e4c76fcbedef1be4b.tar.bz2
libbu++-ee71b87313fa0af4d7deb98e4c76fcbedef1be4b.tar.xz
libbu++-ee71b87313fa0af4d7deb98e4c76fcbedef1be4b.zip
More process fixups.
Diffstat (limited to '')
-rw-r--r--src/process.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/process.cpp b/src/process.cpp
index c554e1a..5dab243 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -25,16 +25,13 @@ Bu::Process::Process( const char *sName, const char *argv, ...)
25 va_start( ap, argv ); 25 va_start( ap, argv );
26 for(; va_arg( ap, const char *); iCnt++ ); 26 for(; va_arg( ap, const char *); iCnt++ );
27 va_end( ap ); 27 va_end( ap );
28 printf("Params: %d\n", iCnt );
29 28
30 char const **list = new char const *[iCnt+2]; 29 char const **list = new char const *[iCnt+2];
31 va_start( ap, argv ); 30 va_start( ap, argv );
32 list[0] = argv; 31 list[0] = argv;
33 printf("list[0] = \"%s\"\n", argv );
34 for( int j = 1; j <= iCnt; j++ ) 32 for( int j = 1; j <= iCnt; j++ )
35 { 33 {
36 list[j] = va_arg( ap, const char *); 34 list[j] = va_arg( ap, const char *);
37 printf("list[%d] = \"%s\"\n", j, list[j] );
38 } 35 }
39 list[iCnt+1] = NULL; 36 list[iCnt+1] = NULL;
40 va_end( ap ); 37 va_end( ap );