fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char *bla = "Start: 23 43 Stopp: 12 14 OWL: no 14.3";
  5.  
  6. float overlap;
  7. int start_one, start_two, end_one, end_two;
  8. sscanf(bla, "%*s %d %d %*s %d %d %*s %*s %f", &start_one,
  9. &start_two, &end_one, &end_two, &overlap);
  10.  
  11. printf("%d %d %d %d %f", start_one, start_two, end_one, end_two, overlap);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
23 43 12 14 14.300000