struct kouzoutai test[10], hoge[10] ;
struct kouzoutai *target ;

/* argc check 必須 */

target= ( !strcmp(argv[1], "test") )? test :
     ( !strcmp(argv[1], "hoge") )? hoge : NULL ;

if ( target != NULL ) {
  for ( i=0; i<10; i++ )
    sum += target[i].a ;
}