Re: glib CVS ?



Hi,

"DINH V. Hoa" <dinh viet hoa free fr> writes:

> On Sat, 24 Nov 2001 13:28:42 +0100
> > I am using glib and I saw that in GString for example,
> > there is a problem, there were no handling for memory allocation
> > errors.

there (sort of) is handling for memory allocation errors built into
the glib g_malloc() function: if the malloc fails the application
exists with a fatal error. Thus there is no need to check the return
value of g_malloc() and friends (g_new, ...).


Salut, Sven



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