Alternatives to MS strncpy_s

前端 未结 10 1534
感情败类
感情败类 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:56

    You may be interested in the Apache Portable Runtime project:

    The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations.

    autoconf can also take care of some of these platform-specific differences (by setting #defines, etc), although my experience with it under Windows leaves something to be desired.

提交回复
热议问题