头文件:#include <direct.h>
函数声明:char * __cdecl _getcwd(_Out_opt_cap_(_SizeInBytes) char * _DstBuf, _In_ int _SizeInBytes);
使用:
char path[1024] = {0};
_getcwd(path, 1024);
So easy!
头文件:#include <direct.h>
函数声明:char * __cdecl _getcwd(_Out_opt_cap_(_SizeInBytes) char * _DstBuf, _In_ int _SizeInBytes);
使用:
char path[1024] = {0};
_getcwd(path, 1024);
So easy!
转载于:https://my.oschina.net/u/2375158/blog/485818