I used strrev() to reverse a string ..
Code:
# include <stdio.h>
# include <string.h>

int main (void)
{
  char str[50];

  fputs("enter",stdout);
  fgets(str, sizeof(str),stdin); strrev(str);
  fputs(str,stdout);
}
.. its showing the following error
PHP Code:
/tmp/cc6O6bIr.oIn function `main':
reversew.c:(.text+0x62): undefined reference to 
`Strrev'
collect2: ld returned 1 exit status