Return 的时候出问题
#include <windows.h>#include <stdio.h>
#include <process.h>
#include <stdlib.h>
#define ENV_VAR_STRING_COUNT (sizeof(envVarStrings)/sizeof(TCHAR*))
#define INFO_BUFFER_SIZE 32767
char *Get_system(char);
char Get_system()
{
char *p;
TCHAR infoBuf[INFO_BUFFER_SIZE];
DWORD bufCharCount = INFO_BUFFER_SIZE;
p="GetSystemDirectory( infoBuf, INFO_BUFFER_SIZE )";
return p;
}
void main()
{
char *g=Get_system(char);
printf( "%s",g);
}