Alternatives to MS strncpy_s

前端 未结 10 1524
感情败类
感情败类 2020-12-20 20:15

What are some alternatives to the Microsoft security enhanced functions such as strncpy_s or _itoa_s? Although developing in MS environment the goa

10条回答
  •  -上瘾入骨i
    2020-12-20 21:10

    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).

提交回复
热议问题