strdup() - what does it do in C?

前端 未结 10 2296
情话喂你
情话喂你 2020-11-21 23:22

What is the purpose of the strdup() function in C?

10条回答
  •  攒了一身酷
    2020-11-22 00:13

    No point repeating the other answers, but please note that strdup() can do anything it wants from a C perspective, since it is not part of any C standard. It is however defined by POSIX.1-2001.

提交回复
热议问题