/*
* Compact {argv}.
*/
- j = 2;
+ j = 1;
for( i = 1; i < *pargc; i++, j++ )
{
- if( argv[ i ] == NULL )
- {
- /* Guaranteed to end because there are "*pargc" arguments left */
- while ( argv[ j ] == NULL )
- j++;
+ /* Guaranteed to end because there are "*pargc" arguments left */
+ while ( argv[ j ] == NULL )
+ j++;
+ if (i != j)
argv[ i ] = argv[ j ];
- }
}
#endif /* TARGET_HOST_WINCE */
break ;
case 28 : /* Unrecognized */
- printf ( "WARNING - Display string token not recognized: %s\n",
- token );
+ fgWarning ( "WARNING - Display string token not recognized: %s",
+ token );
break ;
}