return value checking for GTK APIs



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]