Code:
new szFirst[7];
copy( szFirst, 6, String );
new location = contain( szFirst, "3");
if( location != -1 )
szFirst[location+1] = 0;
format( String, 6, "%s-%s", szFirst, String[location+1] );
Can't really think of a better way to do it. Need a little more information on what you really want.
Could also do something like:
Code:
new szCopy[7];
for( new i; i<sizeof String; i++ ){
if( i == desired_location )
szCopy[i++] = '-';
szCopy[i] = String[i];
}