Rev 9439 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9439 | Rev 9505 | ||
---|---|---|---|
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 | :dword miniprintf(dword dst, format, insert_line) |
906 | { |
906 | { |
907 | dword in_pos = strchr(format, '%'); |
907 | dword in_pos = strchr(format, '%'); |
908 | EBX = ESBYTE[EAX+1]; |
908 | EBX = ESBYTE[EAX+1]; |
909 | if (EBX == 's') { |
909 | if (EBX == 's') { |
Line 914... | Line 914... | ||
914 | if (EBX == 'd') || (EBX == 'i') { |
914 | if (EBX == 'd') || (EBX == 'i') { |
915 | strncpy(dst, format, in_pos - format); |
915 | strncpy(dst, format, in_pos - format); |
916 | strcat(dst, itoa(insert_line)); |
916 | strcat(dst, itoa(insert_line)); |
917 | strcat(dst, in_pos+2); |
917 | strcat(dst, in_pos+2); |
918 | } |
918 | } |
- | 919 | return dst; |
|
919 | } |
920 | } |
Line 920... | Line 921... | ||
920 | 921 | ||
921 | inline cdecl int sprintf(dword buf, format,...) |
922 | inline cdecl int sprintf(dword buf, format,...) |
922 | { |
923 | { |