printf



Hi, 

I'm not sure what I'm doing wrong, but basically I'm trying to insert a 
printf statement in my gtk program and it causes my program to crash. 
Below is the problematic code fragment:

g_printf("box: (in px) height=%d, width=%d,depth=%d\n", 
                       box->height, box->width, box->depth); 

height, width and depth are all gints. Could someone please enlighten me? 

thanks,
--Shuying



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]