char pwdName[256];
int LEN = 200, LenCurDir;
LenCurDir = GetCurrentDirectory(LEN, pwdName); // 这里可能出现问题
if (LenCurDir == 0)
printf("Failure getting pathname.");
else if (LenCurDir > LEN)
printf("Pathname is too long.");
printf(pwdName);
int LEN = 200, LenCurDir;
LenCurDir = GetCurrentDirectory(LEN, pwdName); // 这里可能出现问题
if (LenCurDir == 0)
printf("Failure getting pathname.");
else if (LenCurDir > LEN)
printf("Pathname is too long.");
printf(pwdName);