50 char *path, *pathList, *tmpName;
51 char *sddsTags = NULL;
53 if (!filename || !strlen(filename))
55 if ((sddsTags = strchr(filename,
'='))) {
57 if (!strchr(sddsTags + 1,
'+'))
63 if (search_path && strlen(search_path)) {
64 cp_str(&pathList, search_path);
66 tmpName = malloc(strlen(filename) + strlen(path) + 2 + (sddsTags ? strlen(sddsTags) + 2 : 0));
67 sprintf(tmpName,
"%s/%s", path, filename);
73 strcat(tmpName, sddsTags);
84 *(sddsTags - 1) =
'=';
85 cp_str(&tmpName, filename);