[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: printf
- From: <martyn 2 russell bt com>
- To: <shuyingw cse unsw edu au>, <gtk-app-devel-list gnome org>
- Cc:
- Subject: RE: printf
- Date: Tue, 8 Jun 2004 12:52:32 +0100
> 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?
Does printf () behave the same way?
By the looks of it, box must be NULL, although I bet you're going to
tell me it isn't.
What happens if you replace height, width and depth for actual integers?
Regards,
Martyn
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]