MCPcopy Create free account
hub / github.com/Singular/Singular / make_version

Function make_version

Singular/libparse.cc:3386–3404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3384}
3385
3386void 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
3406void copy_string(lp_modes mode)
3407{

Callers 1

libparse.ccFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected