char * strdup(char *str) { char * strNew; assert(str != NULL); strNew = (char *)malloc(strlen(str)+1); strcpy(strNew,str); return strNew; }
Powered by: 博客园 Copyright © 2024 xxxxxxxx1x2xxxxxxx Powered by .NET 8.0 on Kubernetes