sprintf() giving crash to program!!
Wish u a very happy new year 2006.
I am programming in DirectFB, it is used to make GUI in Linux without the support of XServer. In my program i have to use sprintf() function to address some values in a pointer. But due to using Sprintf() my program is going to crash without showing GUI. so plz tell me whts ging wrong with my code.
i think if i use internal funtionality of sprintf() then it can be fine. But how to put '#10' in a variable. :confused:
//getting Hour, Minute and second. # is a delimeter for separation between different values. Eg. 00#01#02#......
//Function creating GUI and using ptr value inside it.
//Hamdling keyboard and mouse events.
//at last when user exit then release the frame buffer