为什么strncpy出错?
main()
{
char *s="Golden Global View";
char *d="Hello, GGV Programmers";
char *p=strdup(s);
//clrscr();
// textmode(0x00); // enable 6 lines mode
// memset(d,0,sizeof(d));
strncpy(d,s,strlen(s));
printf("%s\n",d);
// strncpy(p,s,strlen(d));
// printf("%s",p);
getchar();
return 0;
}