Subversion Repositories Kolibri OS

Rev

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

Rev 8484 Rev 8868
Line 900... Line 900...
900
		s = DSBYTE[text];
900
		s = DSBYTE[text];
901
	}
901
	}
902
	return ret;
902
	return ret;
903
}
903
}
Line 904... Line 904...
904
 
904
 
905
void miniprintf(dword dst, format, insert_line)
905
:void miniprintf(dword dst, format, insert_line)
906
{
906
{
907
	dword in_pos = strchr(format, '%');
907
	dword in_pos = strchr(format, '%');
908
	if (ESBYTE[in_pos+1] == 's') {
908
	if (ESBYTE[in_pos+1] == 's') {
909
		strlcpy(dst, format, in_pos - format);
909
		strlcpy(dst, format, in_pos - format);
Line 914... Line 914...
914
 
914
 
915
inline cdecl int sprintf(dword buf, format,...)
915
inline cdecl int sprintf(dword buf, format,...)
916
{
916
{
917
	#define END_ARGS 0xFF00FF //ARGS FUNCTION
917
	#define END_ARGS 0xFF00FF //ARGS FUNCTION
918
	byte s;
-
 
919
	char X[10];
918
	byte s;
920
	dword ret, tmp, l;
919
	dword ret, tmp, l;
921
	dword arg = #format;
920
	dword arg = #format;
922
	ret = buf;
921
	ret = buf;
923
	s = DSBYTE[format];
922
	s = DSBYTE[format];