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

后端 未结 4 1367
夕颜
夕颜 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:25

    1st: char *copylo(char *dst, const char *src); (no allocations!)
    2nd: char *lowerize(char *data);

提交回复
热议问题