2 // masashi shimakura 20140223
9 /* ----------- COUNT MEMCPY2 ------------- */
10 char * count_memcpy2(char * out, char * data, int start, int plus)
12 int stop, max, count, co;
14 max = (int)strlen(data);
16 if(start < 0 || plus < 0 || max < 0){
28 swap = (char *)calloc(plus + 5, sizeof(char));
31 for(count = start; count <= stop; count ++){
32 swap[co] = data[count];
36 swap[co] = (char)0x00;
38 out = safe_memcpy(out, swap, BUF_MAX);