fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void reverse(const char *str)
  5. {
  6. char *pos = str + strlen(str) - 1;
  7. while (pos >= str) putchar(*pos--);
  8. putchar('\n');
  9. }
  10.  
  11. int main(void)
  12. {
  13. reverse("foobarfizzbuzz");
  14. return 0;
  15. }
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
zzubzzifraboof