Author: Nico Erfurth Date: To: exim-users Subject: Re: [Exim] Another small patch, please comment
Philip Hazel wrote:
> You are right in that Exim works with C-style strings that cannot
> contain NUL characters, and so Nico is right in that strictly the
> functions should therefore be called "strsomething". The reason there is
> a length parameter on the string_cat() function is so that it can be
> used to pick out substrings.
>
> Hmm. I'm not sure what I think about the patch. You are probably right
> about the efficiency, and for that reason it is perhaps a good idea
> anyway. I'll think about it.
This whole discussion just remembers me on how braindead C-Strings are :)
Did anyone ever benchmark a real string library (using structures to
manage the string) against C-Strings, when it comes to REAL usage?