Использую
Код:
#include <windows.h>
char bufRus[256];
char* RU(const char* text){
CharToOem(text, bufRus);
return bufRus;
}
printf(RU("печатать эту хрень %s\n"), hren);
Хотя всё работает, но на каждый *print* ругается, компилятор mingw gcc 4.5.0 (портирую код из linux) :
Цитата:
d:\usr\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdio.h:294:37: note: expected 'const char *' but argument is of type 'int'
../qs.c:369:5: warning: passing argument 1 of 'printf' makes pointer from integer without a cast
|