re_lignes, /* the compiled pattern */
NULL, /* no extra data - we didn't study the pattern */
data, /* the subject string */
length, /* the length of the subject */
0, /* start at offset 0 in the subject */
0, /* default options */
ovector, /* output vector for substring information */
OVECCOUNT)>=0)
{
char *substring_start = data + ovector[2*2];
int substring_length = ovector[2*2+1] - ovector[2*2];
printf("lignes = %.*s\n", substring_length, substring_start);
printf("Match succeeded at offset %d\n", ovector[0]);
<-------------->
ma question est: comment je fais pour mettre mon "lignes" du printf("lignes
= %.*s\n", substring_length, substring_start); dans un int par exemple ?