Subversion Repositories Kolibri OS

Rev

Rev 3467 | Rev 4166 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3467 Rev 3958
Line 231... Line 231...
231
	}
231
	}
232
	return 0;
232
	return 0;
233
}
233
}
Line 234... Line 234...
234
 
234
 
235
 
235
 
236
void strcpyb(dword search_in, copyin, startstr, endstr)
236
unsigned int strcpyb(dword search_in, copyin, startstr, endstr)
-
 
237
{
237
{
238
	dword startp, endp;
238
	dword startp, endp;
239
	dword copyin_start_off = copyin;
-
 
240
	if (startstr==0) startp = search_in; else startp = strstr(search_in, startstr) + strlen(startstr);
239
	startp = strstr(search_in, startstr) + strlen(startstr);
241
	endp = strstri(startp, endstr);
240
	endp = strstri(startp, endstr);
242
	if (endp==0) endp = startp+strlen(search_in);
241
	if (startp==endp) return;
243
	//if (startp==endp) return 0;
242
	do
244
	do
243
	{ 
245
	{ 
244
		DSBYTE[copyin] = DSBYTE[startp];
246
		DSBYTE[copyin] = DSBYTE[startp];
245
		copyin++;
247
		copyin++;
246
		startp++;
248
		startp++;
247
	}
249
	}
-
 
250
	while (startp
248
	while (startp
251
	DSBYTE[copyin] = '\0';
Line 249... Line 252...
249
	DSBYTE[copyin] = '\0';
252
	return copyin_start_off;
250
}
253
}