#include #define MAXLINE 1000 int ggetline(char line[], int maxline){ int c, i; for(i=0; i=0){ putchar(s[i]); i--; } putchar('\n'); } int main(){ char line[MAXLINE]; int len; while((len=ggetline(line, MAXLINE))>0){ reverse(line); } return 0; }