fork(1) download
  1. g(char*p){char*e,*s=0;for(;*p;p++)*p-32?0:s?(e=p):(s=p);*e=0;puts(s+1);}
  2.  
  3. main()
  4. {
  5. char name[] = "John Jacob Jingleheimer Schmidt";
  6.  
  7. g(name);
  8.  
  9.  
  10. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
Jacob Jingleheimer