>>430
void sep( char* in, char* alpha, char* other )
{
while( *in ) {
if( isalpha( *in ) ) { *alpha = *in; alpha++; }
else { *other = *in; other++; }
in++;
}
*alpha = *other = 0x00;
}
void del( char* in, char* del, char* out )
{
int i, in_len, d;
d = strlen( del ); i = strlen( in ) - d + 1;
while( i > 0 ) {
if( strncmp( in, del, d ) ) { *out = *in; out++; in++; i--; } // 美しくない、誰か直して
else { in+=d; i-=d; }
}
*out = 0x00;
if( strncmp( in, del, d ) ) strcpy( out, in );
}