i programmed my way into a problem, i cant free memory i malloced.
if i free search i can cant send it to my other function. is there any way around creating another varible just for the return?Code:int html_findstarttag(char *src, char tag[]) {
char *search = malloc( strlen(tag) + 3 );
html_createstarttag(search, tag);
return whereis_string(src, search);
}