Re: xmalloc string functions
- From: Richard <devr_@xxxxxxxxx>
- Date: Mon, 28 Jan 2008 19:00:28 +0100
Yevgen Muntyan <muntyan@xxxxxxxxxxxxxxxxxxx> writes:
Kelsey Bjarnason wrote:
On Sun, 27 Jan 2008 20:34:58 +0000, Yevgen Muntyan wrote:
Malcolm McLean wrote:
Here are six functions implemented on top of xmalloc(). No C programmer[snip]
should have any triouble providing the implemetations, though replace
and getquote are non-trivial.
I've think we've got something quite powerful here, purely because noneTake a look at glib,
of these functions can ever return null for out of memory conditions.
It massively simplifies string handling.
http://library.gnome.org/devel/glib/2.14/glib-Memory-Allocation.html
Oh, good God. They didn't. Tell me they didn't.
One wonders how many applications they've screwed over with that bit
of asinine idiocy.
One wonders why one wonders about that only after he learns about
g_malloc. Perhaps because those applications aren't actually screwed?
Precisely, but welcome to c.l.c
.
- References:
- xmalloc string functions
- From: Malcolm McLean
- Re: xmalloc string functions
- From: Yevgen Muntyan
- Re: xmalloc string functions
- From: Kelsey Bjarnason
- Re: xmalloc string functions
- From: Yevgen Muntyan
- xmalloc string functions
- Prev by Date: Re: xmalloc string functions
- Next by Date: Why do signals exist?
- Previous by thread: Re: xmalloc string functions
- Next by thread: Re: xmalloc string functions
- Index(es):
Relevant Pages
|