diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/process.cpp | 3 |
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 ); |