Why is getcwd() not ISO C++ compliant?

前端 未结 7 812
时光取名叫无心
时光取名叫无心 2020-12-09 09:55

This MSDN article states that getcwd() has been deprecated and that the ISO C++ compatible _getcwd should be used instead, which raises the question: what makes getcwd() not

相关标签:
7条回答
  • 2020-12-09 10:52

    As others have already pointed out, getcwd is not included in ISO C++, but is part of POSIX/IEEE Std 1003.1.

    Microsoft has decided to include some of the most commonly used POSIX functions in their C standard library (but prefix these functions with an underscore to essentially discourage their usage).

    0 讨论(0)
提交回复
热议问题