Subversion Repositories Kolibri OS

Rev

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

Rev 7758 Rev 7764
Line 915... Line 915...
915
		text2++;
915
		text2++;
916
	}
916
	}
917
	return 0;
917
	return 0;
918
}
918
}
Line -... Line 919...
-
 
919
 
-
 
920
// void * memset( ptr, value, num );
-
 
921
// fills the memory with a dword
-
 
922
// example: memset(str,'-', sizeof(str));
-
 
923
inline void MEMSETD(EDI,ECX,EAX)
-
 
924
{
-
 
925
	$REP 
-
 
926
	$STOSD
-
 
927
}
919
 
928
 
920
:replace_char(dword in_str, char from_char, to_char, int length) {
929
:replace_char(dword in_str, char from_char, to_char, int length) {
921
	int i;
930
	int i;
922
	for (i=0; i
931
	for (i=0; i
923
		if (ESBYTE[in_str+i] == from_char) ESBYTE[in_str+i] = to_char;
932
		if (ESBYTE[in_str+i] == from_char) ESBYTE[in_str+i] = to_char;