首页 > TAG信息列表 > strdup

strdup 字符串复制 free

#include <stdlib.h> #include <stdio.h> #include <string.h> #include <malloc.h> int main() { char *s = "golden gold view"; char *d; d = strdup(s); if(NULL != d) { printf(&