标签:
字符串拼接:
char *value = malloc(strlen(basePath) + strlen(resourceDirectory) + strlen(PATH_SEPARATOR) + 1);
if (value == NULL) {
exit(1);
}
strcpy(value, basePath);
strcat(value, resourceDirectory);
strcat(value, PATH_SEPARATOR);
标签:
原文地址:http://my.oschina.net/fonddream/blog/506442