You should probably try to handle your command line differently.
Something like:
./hw34 -c "385,280,50" balloons.ascii.pgm balloonCircle.pgm
./hw34 -e 100 balloons.ascii.pgm balloonEdge.pgm
Then combined with getopt for command line handling and strtok for argument list's splitting, you should be able to achieve what you want.
The main advantage is that you won't have to worry about the number of arguments or their position in your command line anymore.