Димон Безпарольный 2 December 8, 2025 Posted December 8, 2025 · Report post Хотел сделать такое: int MY_printf(const char *format, ...) { va_list args; va_start(args, format); vprintf(format, args); va_end(args); } int main (void) { MY_printf("GHF %f %f\r\n", 12, 14); } Вообще такое возможно? Quote Share this post Link to post Share on other sites More sharing options...
GenaSPB 25 December 8, 2025 Posted December 8, 2025 · Report post MY_printf("GHF %f %f\r\n", (float) 12, (float) 14); Quote Share this post Link to post Share on other sites More sharing options...
Димон Безпарольный 2 December 8, 2025 Posted December 8, 2025 · Report post Ага, обнаружил что проблема только с флоатом. %f не прокатывает. %d прокатывает исправно. 1 minute ago, GenaSPB said: MY_printf("GHF %f %f\r\n", (float) 12, (float) 14); Спасибо! Теперь прокатывает и с флоатом. Quote Share this post Link to post Share on other sites More sharing options...