问题在于说明时间将多长,因此,我无法为我的数据分配多少时间。
char *Data = malloc(1024*1024); //???????
sprintf(Data, "%s %s", Data1, Data2);
Data1 and Data2 varies in Size from time to time.... from very very long to very small i was wondering if there is away to use sprintf without allocating memory or something, since the allocated memory could be small sometime..
thanks