Which string manipulation functions should I use?

后端 未结 6 899
暗喜
暗喜 2021-02-13 00:01

On my Windows/Visual C environment there\'s a wide number of alternatives for doing the same basic string manipulation tasks.

For example, for doing a string copy I coul

6条回答
  •  滥情空心
    2021-02-13 00:11

    My personal preference, for both new and existing projects, are the StringCchCopy/StringCbCopy versions from the safe string library. I find these functions to be overall very consistent and flexible. And they were designed from the groupnd up with safety / security in mind.

提交回复
热议问题