Regex and strncpy not working as I understood them

Advertisements I’m running into multiple issues with the following code: When I’m running this code on a file containing multiple URLs per line, the regex while loop runs indefinitely. On a file containing only one HTTP URL on each line, valgrind complains that matches[count] = malloc(sizeof(char) * match_length); and matches[count][match_length] = 0; are Invalid size… Read More Regex and strncpy not working as I understood them