[En-Nut-Discussion] Q1:different on heapalloc and malloc] Q2:sprintf problem

ivesworking ivesworking at hotmail.com
Thu Jul 6 17:59:16 CEST 2006


first, i use the mixture of malloc and nutheapalloc
anyone can tell me is that different ?


another problem is sprintf
i use it for format my string,
to avoid create another buffer, i do something like that
char *temp;    //assume already allocate mem

sprintf(temp,"hello world");
sprintf(temp,"%s is testing program", temp);    // please assume that i will 
do some format on second sprintf
are this example should work or it will be got problem on time over time.

wfloh 



More information about the En-Nut-Discussion mailing list