Hey all , i am new here.
I have a problem with the following code :
I want to put in link[] the html links from the table buf .Code:// buf holds the raw html line
char buf[1000];
// this stores 1 link
char link[1000];
char *start = strstr(buf, "<a href");
start = strchr(start+1, '>')+1;
char *end = strstr(buf, "</a>");
memset(link, 0, 1000);
memcpy(start, link, end-start)
I am doing something wrong , can someone help me