| 3384 | } |
| 3385 | |
| 3386 | void make_version(char *p,int what) |
| 3387 | { |
| 3388 | char ver[11]; |
| 3389 | char date[17]; |
| 3390 | ver[0]='?'; ver[1]='.'; ver[2]='?'; ver[3]='\0'; |
| 3391 | date[0]='?'; date[1]='\0'; |
| 3392 | if(what) sscanf(p,"%*[^=]= %*s %*s %10s %16s",ver,date); |
| 3393 | else sscanf(p,"// %*s %*s %10s %16s",ver,date); |
| 3394 | strcpy(libnamebuf,"("); |
| 3395 | strcat(libnamebuf,ver); |
| 3396 | strcat(libnamebuf,","); |
| 3397 | strcat(libnamebuf,date); |
| 3398 | strcat(libnamebuf,")"); |
| 3399 | if(what && strcmp(libnamebuf, "(?.?,?)")==0) |
| 3400 | { |
| 3401 | sscanf(p,"%*[^\"]\"%[^\"]\"",libnamebuf); |
| 3402 | } |
| 3403 | //printf("ID=(%d)%s; \n", what, p); |
| 3404 | } |
| 3405 | |
| 3406 | void copy_string(lp_modes mode) |
| 3407 | { |