Hello
I'm developing my tools in Visual C++
When i'm using standard C library functions the MSVCRT will be a dependency on my program, which is not desirable
I'm looking for implementions of some C functions (see below) that only use functions from libraries such as kernel32, examples i've already got:
malloc:
void* malloc(size_t x) {
void* a = HeapAlloc(GetProcessHeap(), 0, x);
return a;
}
strstr:
const char * strstr(const char *haystack, const char *needle) {
unsigned int needle_len = lstrlen(needle);
for (;*haystack;++haystack){
if (strncmp(haystack,needle,needle_len) == 0){
return haystack;
}
}
return NULL;
}
I'm looking for FAST, FAIL-PROOF, LIGHTWEIGHT (NO 150 lines of code implementions of functions) implementions of the following functions:
strtol - ([login to view URL])
sprintf (or _snprintf) - ([login to view URL])
sscanf - ([login to view URL])