fork(7) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char *orig = "20 200 2000 21 1";
  5. char *res;
  6. // Skip to first space
  7. for (res = orig ; *res && *res != ' ' ; res++)
  8. ;
  9. // If there was a space, skip it too
  10. if (*res) res++;
  11. printf("%s\n", res);
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
200 2000 21 1