return value checking for GTK APIs
- From: brahmaiah vallabhaneni <vbrahmaiah yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: return value checking for GTK APIs
- Date: Tue, 24 Sep 2002 08:41:37 -0700 (PDT)
Hi All,
I am new to Linux GUI programming and started going
through the tutorial.
But I have observed one strange coding style (to me).
Usually, when we call a function say malloc, we
always validate the return value before it's use.
But in GTK samples, they do n't check the return
value of APIs. Any specific reason ?
Is it always guranteed that these APIs succeed ?
Pls tell me if I am missing some thing....
Thanks and Regards,
V.Brahmaiah
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]