获取文件当前路径标准函数_getcwd

头文件:#include <direct.h>

函数声明:char * __cdecl _getcwd(_Out_opt_cap_(_SizeInBytes) char * _DstBuf, _In_ int _SizeInBytes);

使用:

 char path[1024] = {0};

 _getcwd(path, 1024);

So easy!

你可能感兴趣的:(_getcwd,获取文件当前路径)