505 :
デフォルトの名無しさん:
char *findSplitter(char *stt,int sp)
{
unsigned char *p = (unsigned char*)stt ;
char ss = (unsigned char)(sp & 0x00ff) ;
while(*p)
{
if( *p >= 0xa0 && *p <= 0xdf) {p++ ; continue;}
if((*p >= 0x81 && *p <= 0x9f || *p >= 0xe0 && *p <= 0xfc)) { p += 2 ; continue;}
if(*p == ss) return p ;
p++ ;
}
return NULL ;
}