2 // dataはlen分の長さが保証されていること
12 int self_delim_get(char * swap, char * data, char delim, int target, int len)
14 int sto, sta, count, ret;
21 count = delim_count(swap, delim, target, &sta, &sto);
23 printf("DELIM 1 %d -> %d %d\n", sta, sto, count);
25 if(count > 0 && sta <= sto && count < len){
26 ret = memcount_cpm(data, swap, sta, sto, len);
32 printf("data =%s\n", data);