What are some alternatives to the Microsoft security enhanced functions such as strncpy_s or _itoa_s? Although developing in MS environment the goal is to write code that could be ported easily to other platforms.
What are some alternatives to the Microsoft security enhanced functions such as strncpy_s or
Share
Rageous is correct, there is no complex logic behind it.
I would just use Microsoft’s version for now and if you decide to port to another OS later, THEN implement it yourself for the target platform and use preprocessor commands to specify your implementation on the non-Windows platform(s).