Infinite has a specific mathematical meaning. And it doesn't fit in this case. Its not even close.
Median of 3, 5, etc, reduces that number of bad cases, but cannot remove them. Specifically...
Type: Posts; User: qed
Infinite has a specific mathematical meaning. And it doesn't fit in this case. Its not even close.
Median of 3, 5, etc, reduces that number of bad cases, but cannot remove them. Specifically...
In case someone cared about the real answer (which is not very well known, or understood):
1. O'Hare's Quicksort algorithm has a worst case of O(n^2) running time. (I.e., its not much better than...
Yes, I realize this. But there is no way to make an inaccessible dynamic name space inside a C macro, so I just chose the one that the non-system programmer will avoid. Making it work with any...
The __'s are used to try to keep the variable names out of regular the program usable namespace. For example, try the following with your macro:
char * slen = malloc (16);
*slen = '\0';...
#define strcatchar(__str,__cc) \
{ \
int __slen; \
__str[__slen = strlen(__str)] = __cc; \
__str[__slen+1] = '\0'; \
}
As to the question of stability :
Bstrlib is *very* usable. Prior to implementing the regression test, Bstrlib was very reliable with no known problems under "normal" usage. In writing the main...
Hi folks!
I am the author of the better string library (Bstrlib). As to the question of "Which [string library] do you think is best/easiest to use?" I want the answer to be the better string...