233,14 → 233,12 |
} |
|
|
unsigned int strcpyb(dword search_in, copyin, startstr, endstr) |
void strcpyb(dword search_in, copyin, startstr, endstr) |
{ |
dword startp, endp; |
dword copyin_start_off = copyin; |
if (startstr==0) startp = search_in; else startp = strstr(search_in, startstr) + strlen(startstr); |
startp = strstr(search_in, startstr) + strlen(startstr); |
endp = strstri(startp, endstr); |
if (endp==0) endp = startp+strlen(search_in); |
//if (startp==endp) return 0; |
if (startp==endp) return; |
do |
{ |
DSBYTE[copyin] = DSBYTE[startp]; |
249,7 → 247,6 |
} |
while (startp<endp); |
DSBYTE[copyin] = '\0'; |
return copyin_start_off; |
} |
|
|