| 117 |
*/ |
*/ |
| 118 |
default: printf("Matching error %d\n", rc); break; |
default: printf("Matching error %d\n", rc); break; |
| 119 |
} |
} |
| 120 |
free(re); /* Release memory used for the compiled pattern */ |
pcre_free(re); /* Release memory used for the compiled pattern */ |
| 121 |
return 1; |
return 1; |
| 122 |
} |
} |
| 123 |
|
|
| 223 |
|
|
| 224 |
if (!find_all) |
if (!find_all) |
| 225 |
{ |
{ |
| 226 |
free(re); /* Release the memory used for the compiled pattern */ |
pcre_free(re); /* Release the memory used for the compiled pattern */ |
| 227 |
return 0; /* Finish unless -g was given */ |
return 0; /* Finish unless -g was given */ |
| 228 |
} |
} |
| 229 |
|
|
| 230 |
/* Loop for second and subsequent matches */ |
/* Loop for second and subsequent matches */ |
| 276 |
if (rc < 0) |
if (rc < 0) |
| 277 |
{ |
{ |
| 278 |
printf("Matching error %d\n", rc); |
printf("Matching error %d\n", rc); |
| 279 |
free(re); /* Release memory used for the compiled pattern */ |
pcre_free(re); /* Release memory used for the compiled pattern */ |
| 280 |
return 1; |
return 1; |
| 281 |
} |
} |
| 282 |
|
|
| 317 |
} /* End of loop to find second and subsequent matches */ |
} /* End of loop to find second and subsequent matches */ |
| 318 |
|
|
| 319 |
printf("\n"); |
printf("\n"); |
| 320 |
free(re); /* Release memory used for the compiled pattern */ |
pcre_free(re); /* Release memory used for the compiled pattern */ |
| 321 |
return 0; |
return 0; |
| 322 |
} |
} |
| 323 |
|
|