for some reason I cannot explain, every single item in the character array...is equal to the last item added to it...for example progArgs[0] through progArgs[size] contains the
The char array item is local variable and is available only within the for loop.
char
item
for
Instead allocate it dynamically.