fork(1) download
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. int main(void) {
  5. char str[]="de varken en de hond";
  6. for (char* it=str, w=1;*it; w=(*it++==' '))
  7. if (w) *it=toupper(*it);
  8. puts(str);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5532KB
stdin
Standard input is empty
stdout
De Varken En De Hond