Rev 17822 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17822 | Rev 18000 | ||
---|---|---|---|
Line 1107... | Line 1107... | ||
1107 | } |
1107 | } |
1108 | } |
1108 | } |
1109 | snprintf(nbuf,sizeof(nbuf),":%s\n%s\n",m,rqv); /* rqv : execution parameters for the module ; m is the name of exercise module */ |
1109 | snprintf(nbuf,sizeof(nbuf),":%s\n%s\n",m,rqv); /* rqv : execution parameters for the module ; m is the name of exercise module */ |
1110 | p1=strstr(buf,nbuf); |
1110 | p1=strstr(buf,nbuf); |
1111 | /* this loop searches exercise parameters in buf |
1111 | /* this loop searches exercise parameters in buf |
1112 | calculate num of the |
1112 | calculate num of the exercise in the ressources (sheet /public_sheet / freework) |
1113 | */ |
1113 | */ |
1114 | while(p1>buf && *(p1-1)!='\n') p1=strstr(p1+1,nbuf); |
1114 | while(p1>buf && *(p1-1)!='\n') p1=strstr(p1+1,nbuf); |
1115 | if(p1!=NULL) { |
1115 | if(p1!=NULL) { |
1116 | p2=strchr(buf,':'); |
1116 | p2=strchr(buf,':'); |
1117 | while(p2>buf && *(p2-1)!='\n') p2=strchr(p2+1,':'); |
1117 | while(p2>buf && *(p2-1)!='\n') p2=strchr(p2+1,':'); |