What naming conventions do you follow with functions that allocate memory?

后端 未结 4 1376
夕颜
夕颜 2021-01-21 00:37

So here are two functions that do almost the same thing.

How would you name each one, if you had to include both in your project?

void s         


        
4条回答
  •  死守一世寂寞
    2021-01-21 01:18

    • there is a function called tolower() no need to do crazy testing and hard-coded transformation
    • if you already have a function making in-place lowercasing, why are you reimplementing the code in the not-in-place version?
    • the naming is OK

提交回复
热议问题