Alternatives to MS strncpy_s

前端 未结 10 1571
感情败类
感情败类 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条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 20:52

    You could either provide an own implementation for platforms that don't have this function. Or use a macro to reduce the arguments by one and map to the standard string function.

提交回复
热议问题