Re: xmalloc string functions
- From: Randy Howard <randyhoward@xxxxxxxxxxxxxxxxx>
- Date: Sun, 27 Jan 2008 23:10:12 GMT
On Sun, 27 Jan 2008 16:12:01 -0600, William Ahern wrote
(in article <h6cv65-grq.ln1@xxxxxxxxxxxxxxxxxxxxxxxxx>):
Yevgen Muntyan <muntyan@xxxxxxxxxxxxxxxxxxx> 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
glib is where bad ideas go to die. Now, if somebody just had the nerve to
tell them....
:)
You gdon't glike ghaving gall gyour gvariables gprexfed gwith g?
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw
.
- Follow-Ups:
- 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
- Re: xmalloc string functions
- From: William Ahern
- xmalloc string functions
- Prev by Date: Re: Linux Kernel Source
- Next by Date: Re: When to check the return value of malloc
- Previous by thread: Re: xmalloc string functions
- Next by thread: Re: xmalloc string functions
- Index(es):
Relevant Pages
|