fork download
  1. void reverse_word(char * sentence) {
  2. char * end_s = &sentence[strlen(sentence)], * end_w;
  3. while (end_w != end_s) {
  4. if (!(end_w = strchr(sentence, ' '))) end_w = end_s;
  5. reverse_char_array(sentence, end_w);
  6. sentence = end_w + 1;
  7. }
  8. }
  9.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty