신기하지만 위험을 감수하며 쓸 필요없는 방법.


char (&ArrayReturnFunc(int AValue))[10]

{

static __thread char result[10];

memset(result, 0, 10);

std::snprintf(result, 10, "Test %d", AValue);

return result;

}


+ Recent posts