I cleaned up the algorithm a lot to remove formatted C strings. This should greatly increase the overall speed, and allowed for me to remove some unnecessary complexities (e.g., caching argument order and replacing arguments with
%s, now the logger format string is left as-is). If it becomes a priority later I can modify the algorithm to include some of the basics:
In other words, left/right align, padding and max len.
Now for the other couple of features.
BTW:
Does anyone know if there is an algorithm in C std library to copy single char into first cell of string? I wrote this guy because I couldn't find one:
Code:
char* strncpyc(char* destination, const char source, int len) {
if (len) {
*destination = source;
}
return destination;
}
__________________