View Single Post
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-15-2015 , 03:51   Re: Compiling AMXX Module
Reply With Quote #9

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:
Code:
%-#.#<specifier>
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;
}
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]

Last edited by Tirant; 09-15-2015 at 03:53.
Tirant is offline