Re: xmalloc string functions
- From: Kelsey Bjarnason <kbjarnason@xxxxxxxxx>
- Date: Sun, 27 Jan 2008 15:49:42 +0000
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
should have any triouble providing the implemetations, though replace
and getquote are non-trivial.
[snip]
I've think we've got something quite powerful here, purely because none
of these functions can ever return null for out of memory conditions.
It massively simplifies string handling.
Take a look at glib,
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.
Malcolm should go work for them. He'd love it. "Errors? We don't do
errors, we just crash the app. Enjoy another piece of quality software
from the Gnome team."
.
- Follow-Ups:
- Re: xmalloc string functions
- From: Richard Bos
- Re: xmalloc string functions
- From: dj3vande
- Re: xmalloc string functions
- From: Randy Howard
- Re: xmalloc string functions
- From: Yevgen Muntyan
- Re: xmalloc string functions
- References:
- xmalloc string functions
- From: Malcolm McLean
- Re: xmalloc string functions
- From: Yevgen Muntyan
- xmalloc string functions
- Prev by Date: Re: xmalloc string functions
- Next by Date: Re: Thoughts on file organisation
- Previous by thread: Re: xmalloc string functions
- Next by thread: Re: xmalloc string functions
- Index(es):
Relevant Pages
|