Re: Defacto standard string library
- From: user923005 <dcorbit@xxxxxxxxx>
- Date: Fri, 2 Jan 2009 15:38:10 -0800 (PST)
On Jan 2, 3:31 pm, jameskuyper <jameskuy...@xxxxxxxxxxx> wrote:
user923005 wrote:
On Jan 2, 1:36 pm, Stephen Sprunk <step...@xxxxxxxxxx> wrote:...
If you only concatenate one valid string to another, it's not an issue.
If that is all you need to do, then use mem* functions and not str*
functions and there will be less trouble.
But then you'll have to search for, or at least keep track of, the
location of the terminating null byte,
If we are only ever concatenating, then this piece of math is rather
trivial.
in order to tell the mem*
functions how much data to move around or compare. What advantages do
you perceive to using the mem* functions rather than the corresponding
str* functions for this purpose?
The str* functions don't work properly and the mem* functions do.
Actually, I see no advantage in using mem* functions other than
possibly not trying something that I should not be trying.
I would never use standard C library functions to localize when ICU is
available. It's utter insanity.
.
- Follow-Ups:
- Re: Defacto standard string library
- From: Stephen Sprunk
- Re: Defacto standard string library
- From: James Kuyper
- Re: Defacto standard string library
- From: Richard Tobin
- Re: Defacto standard string library
- From: Keith Thompson
- Re: Defacto standard string library
- References:
- Re: Defacto standard string library
- From: Phil Carmody
- Re: Defacto standard string library
- From: Keith Thompson
- Re: Defacto standard string library
- From: user923005
- Re: Defacto standard string library
- From: Stephen Sprunk
- Re: Defacto standard string library
- From: user923005
- Re: Defacto standard string library
- From: jameskuyper
- Re: Defacto standard string library
- Prev by Date: Re: Defacto standard string library
- Next by Date: Re: generic linklist
- Previous by thread: Re: Defacto standard string library
- Next by thread: Re: Defacto standard string library
- Index(es):
Relevant Pages
|