If I use sprintf(My_String, "%d", 1234) do I need to use malloc first or does this happen automatically?
Printable View
If I use sprintf(My_String, "%d", 1234) do I need to use malloc first or does this happen automatically?
My_String needs to point to valid memory before you call sprintf. (Looking sprintf up in any resource material you have to hand would provide the answer to the question.)