Which string manipulation functions should I use?

后端 未结 6 2216
轮回少年
轮回少年 2021-02-13 00:07

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:26

    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.

提交回复
热议问题