Hi All,
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.
Code:
//getting Hour, Minute and second. # is a delimeter for separation between different values. Eg. 00#01#02#......
sprintf(ptr,"#%d#%d#%d#",hour,min,sec);
//Function creating GUI and using ptr value inside it.
DIrectFB_initilization_function();
//Hamdling keyboard and mouse events.
Event_handling_function();
//at last when user exit then release the frame buffer
release_function();
i think if i use internal funtionality of sprintf() then it can be fine. But how to put '#10' in a variable.