|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 500 (0x1f4) Types: TextFile Names: »get4args.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Gb/get4args.c«
/* * Galactic Bloodshed (Robert Chansky, smq@b) */ get4args(s,xl,xh,yl,yh) char *s; int *xl,*xh,*yl,*yh; { char *p,s1[17],s2[17]; p=s; sscanf(p,"%[^,]",s1); while ( (*p!=':') && (*p!=',') ) p++; if (*p==':') { sscanf(s1,"%d:%d",xl,xh); while (*p!=',') p++; } else if (*p==',') { sscanf(s1,"%d",xl); *xh=(*xl); } sscanf(p,"%s",s2); while ( (*p!=':') && (*p!='\0') ) p++; if (*p==':') { sscanf(s2,",%d:%d",yl,yh); } else { sscanf(s2,",%d,",yl); *yh=(*yl); } }