Crazy_kettle
то что ты хочешь, можно сделать так:
Код:
#include "stdio.h"
#define FILL_BUF(buf, s, num, sys) sprintf(buf,"%s%d%c", s, num, sys)
int _tmain(int argc, _TCHAR* argv[])
{
char buf[20];
FILL_BUF(buf, "Bla-h bla-h %", 30, 'd');
// in this line we have buf filled with desired string
return 0;
}
Хотя я не стал бы использовать макросы для таких целей.